Exception: Trilogy::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Trilogy::BaseError
- Includes:
- Error
- Defined in:
- lib/trilogy.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.
42 43 44 45 46 |
# File 'lib/trilogy.rb', line 42 def initialize( = nil, error_code = nil) = error_code ? "#{error_code}: #{error_message}" : super() @error_code = error_code end |