Exception: Ksef::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ksef::Error
- Defined in:
- lib/ksef/errors.rb
Overview
Base class for everything this gem raises. Rescue this to catch all of it.
#problem carries the parsed KSeF error body when the error came from an API
response, and is nil for locally-raised errors.
Direct Known Subclasses
ApiError, AuthenticationError, ConfigurationError, ConnectionError, TimeoutError, ValidationError
Instance Attribute Summary collapse
- #problem ⇒ Ksef::ProblemDetails? readonly
Instance Method Summary collapse
-
#initialize(message = nil, problem: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, problem: nil) ⇒ Error
Returns a new instance of Error.
17 18 19 20 |
# File 'lib/ksef/errors.rb', line 17 def initialize( = nil, problem: nil) @problem = problem super() end |
Instance Attribute Details
#problem ⇒ Ksef::ProblemDetails? (readonly)
15 16 17 |
# File 'lib/ksef/errors.rb', line 15 def problem @problem end |