Exception: InfusionAPIError
- Inherits:
-
StandardError
- Object
- StandardError
- InfusionAPIError
- Defined in:
- lib/infusionsoft/exceptions.rb
Overview
Extend StandardError to keep track of Error being wrapped Pattern from Exceptional Ruby by Avdi Grimm (avdi.org/talks/exceptional-ruby-2011-02-04/)
Direct Known Subclasses
Infusionsoft::DatabaseError, Infusionsoft::FailedLoginAttemptError, Infusionsoft::FailedLoginAttemptPasswordExpiredError, Infusionsoft::InvalidConfigError, Infusionsoft::InvalidKeyError, Infusionsoft::InvalidParameterError, Infusionsoft::LoadingError, Infusionsoft::NoAccessError, Infusionsoft::NoFieldAccessError, Infusionsoft::NoFieldFoundError, Infusionsoft::NoFieldsError, Infusionsoft::NoTableAccessError, Infusionsoft::NoTableFoundError, Infusionsoft::RecordNotFoundError, Infusionsoft::UnexpectedError
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(msg, original = nil) ⇒ InfusionAPIError
constructor
A new instance of InfusionAPIError.
Constructor Details
#initialize(msg, original = nil) ⇒ InfusionAPIError
Returns a new instance of InfusionAPIError.
5 6 7 8 9 |
# File 'lib/infusionsoft/exceptions.rb', line 5 def initialize(msg, original=nil); Infusionsoft.api_logger.error "ERROR: #{msg}" super(msg); @original = original; end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
4 5 6 |
# File 'lib/infusionsoft/exceptions.rb', line 4 def original @original end |