Exception: Knowledge::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/knowledge/exceptions.rb

Overview

Description

This error class should be considered as the lib’s standard error. All error classes inherit from this one. The goal is to be able to rescue Knowledge::Error outside the lib and catch them all.

Usage

You have many examples behind. Just inherit from this class and it’s ok.

@example:

class ::MyCustomKnowledgeError < Knowledge::Error; end