Exception: Ksef::ApiError
Overview
Any error response from the KSeF API.
Direct Known Subclasses
AuthorizationError, InvoiceRejectedError, RateLimitedError, ResourceGoneError, ServerError, SessionError
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#code ⇒ Integer?
The first KSeF error code, when the body carried one.
-
#details ⇒ Array<String>
Flattened detail messages.
-
#raw ⇒ Object?
The undecoded response body.
-
#status ⇒ Integer?
HTTP status.
-
#trace_id ⇒ String?
The Ministry's correlation id — quote this in support requests.
Methods inherited from Error
Constructor Details
This class inherits a constructor from Ksef::Error
Instance Method Details
#code ⇒ Integer?
Returns the first KSeF error code, when the body carried one.
38 |
# File 'lib/ksef/errors.rb', line 38 def code = problem&.code |
#details ⇒ Array<String>
Returns flattened detail messages.
41 |
# File 'lib/ksef/errors.rb', line 41 def details = problem&.details || [] |
#raw ⇒ Object?
Returns the undecoded response body.
47 |
# File 'lib/ksef/errors.rb', line 47 def raw = problem&.raw |
#status ⇒ Integer?
Returns HTTP status.
35 |
# File 'lib/ksef/errors.rb', line 35 def status = problem&.status |
#trace_id ⇒ String?
Returns the Ministry's correlation id — quote this in support requests.
44 |
# File 'lib/ksef/errors.rb', line 44 def trace_id = problem&.trace_id |