Exception: HelloSign::Error
- Inherits:
-
StandardError
- Object
- StandardError
- HelloSign::Error
- Defined in:
- lib/hello_sign/error.rb
Direct Known Subclasses
BadRequest, ConvertFailed, Forbidden, InvalidRecipient, NotFound, SignatureRequestCancelFailed, TeamInviteFailed, Unauthorized, Unknown
Defined Under Namespace
Classes: BadRequest, ConvertFailed, Forbidden, InvalidRecipient, NotFound, SignatureRequestCancelFailed, TeamInviteFailed, Unauthorized, Unknown
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = nil, status_code = nil) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, status_code = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 |
# File 'lib/hello_sign/error.rb', line 5 def initialize( = nil, status_code = nil) @message, @status_code = , status_code end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/hello_sign/error.rb', line 3 def @message end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/hello_sign/error.rb', line 3 def status_code @status_code end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/hello_sign/error.rb', line 9 def to_s status_code ? : end |