Exception: CzechPostB2bClient::B2BErrors::BaseError
- Defined in:
- lib/czech_post_b2b_client/b2b_errors.rb
Direct Known Subclasses
BadRequestError, CustomerRequestsCountOverflowError, InternalB2BServerError, InternalBackendServerError, InternalDataPersistenceServerError, ProcessingUnfinishedYetError, ServiceBusyError, UnauthorizedContractAccessError, UnauthorizedRoleAccessError
Class Attribute Summary collapse
-
.code ⇒ Object
readonly
Returns the value of attribute code.
-
.message ⇒ Object
readonly
Returns the value of attribute message.
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(details = '') ⇒ BaseError
constructor
A new instance of BaseError.
- #message ⇒ Object
Constructor Details
#initialize(details = '') ⇒ BaseError
Returns a new instance of BaseError.
38 39 40 41 |
# File 'lib/czech_post_b2b_client/b2b_errors.rb', line 38 def initialize(details = '') super self.details = details end |
Class Attribute Details
.code ⇒ Object (readonly)
Returns the value of attribute code.
31 32 33 |
# File 'lib/czech_post_b2b_client/b2b_errors.rb', line 31 def code @code end |
.message ⇒ Object (readonly)
Returns the value of attribute message.
35 36 37 |
# File 'lib/czech_post_b2b_client/b2b_errors.rb', line 35 def @message end |
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details.
43 44 45 |
# File 'lib/czech_post_b2b_client/b2b_errors.rb', line 43 def details @details end |
Instance Method Details
#code ⇒ Object
45 46 47 |
# File 'lib/czech_post_b2b_client/b2b_errors.rb', line 45 def code self.class.code end |
#message ⇒ Object
49 50 51 |
# File 'lib/czech_post_b2b_client/b2b_errors.rb', line 49 def "#{self.class.} -- #{details}" end |