Exception: Fakturoid::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Fakturoid::ApiError
- Defined in:
- lib/fakturoid.rb
Direct Known Subclasses
AuthenticationError, BlockedAccountError, ClientError, ContentTypeError, DestroySubjectError, GeneratorLimitError, InvalidRecordError, PaginationError, RateLimitError, ReadOnlySiteError, RecordNotFoundError, ServerError, SubjectLimitError, UnsupportedFeatureError, UserAgentError
Instance Attribute Summary collapse
-
#response_body ⇒ Object
Returns the value of attribute response_body.
-
#response_code ⇒ Object
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(message = nil, response_code = nil, response_body = nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message = nil, response_code = nil, response_body = nil) ⇒ ApiError
Returns a new instance of ApiError.
18 19 20 21 22 |
# File 'lib/fakturoid.rb', line 18 def initialize( = nil, response_code = nil, response_body = nil) super() self.response_code = response_code self.response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object
Returns the value of attribute response_body.
16 17 18 |
# File 'lib/fakturoid.rb', line 16 def response_body @response_body end |
#response_code ⇒ Object
Returns the value of attribute response_code.
16 17 18 |
# File 'lib/fakturoid.rb', line 16 def response_code @response_code end |