Exception: Trilogy::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Trilogy::BaseError
- Includes:
- Error
- Defined in:
- lib/trilogy/error.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes included from Error
Instance Method Summary collapse
-
#initialize(error_message = nil, error_code = nil) ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(error_message = nil, error_code = nil) ⇒ BaseError
Returns a new instance of BaseError.
46 47 48 49 50 |
# File 'lib/trilogy/error.rb', line 46 def initialize( = nil, error_code = nil) = error_code ? "#{error_code}: #{}" : super() @error_code = error_code end |