Exception: Karaden::Exception::KaradenException
- Inherits:
-
StandardError
- Object
- StandardError
- Karaden::Exception::KaradenException
- Defined in:
- lib/karaden/exception/karaden_exception.rb
Direct Known Subclasses
BadRequestException, BulkMessageCreateFailedException, BulkMessageListMessageRetryLimitExceedException, BulkMessageShowRetryLimitExceedException, FileDownloadFailedException, FileNotFoundException, FileUploadFailedException, ForbiddenException, InvalidParamsException, InvalidRequestOptionsException, NotFoundException, TooManyRequestsException, UnauthorizedException, UnexpectedValueException, UnknownErrorException, UnprocessableEntityException
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#error ⇒ Object
Returns the value of attribute error.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ KaradenException
constructor
A new instance of KaradenException.
Constructor Details
#initialize(message = nil) ⇒ KaradenException
Returns a new instance of KaradenException.
6 7 8 9 10 11 12 |
# File 'lib/karaden/exception/karaden_exception.rb', line 6 def initialize( = nil) @code = nil @headers = {} @body = '' @error = nil super() end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/karaden/exception/karaden_exception.rb', line 4 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/karaden/exception/karaden_exception.rb', line 4 def code @code end |
#error ⇒ Object
Returns the value of attribute error.
4 5 6 |
# File 'lib/karaden/exception/karaden_exception.rb', line 4 def error @error end |
#headers ⇒ Object
Returns the value of attribute headers.
4 5 6 |
# File 'lib/karaden/exception/karaden_exception.rb', line 4 def headers @headers end |