Exception: Trilogy::BaseError

Inherits:
StandardError
  • Object
show all
Includes:
Error
Defined in:
lib/trilogy/error.rb

Instance Attribute Summary

Attributes included from Error

#error_code

Instance Method Summary collapse

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(error_message = nil, error_code = nil)
  message = error_code ? "#{error_code}: #{error_message}" : error_message
  super(message)
  @error_code = error_code
end