Exception: Trilogy::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Trilogy::BaseError
- Includes:
- Error
- Defined in:
- lib/trilogy.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
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.
20 21 22 23 24 |
# File 'lib/trilogy.rb', line 20 def initialize( = nil, error_code = nil) = error_code ? "#{error_code}: #{}" : super() @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
18 19 20 |
# File 'lib/trilogy.rb', line 18 def error_code @error_code end |