Exception: BancoBrasilStatements::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- BancoBrasilStatements::ApiError
- Defined in:
- lib/bb_statements/api_error.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ ApiError
constructor
A new instance of ApiError.
- #message ⇒ Object
-
#to_s ⇒ Object
Override to_s to display a friendly error message.
Constructor Details
#initialize(message) ⇒ ApiError
Returns a new instance of ApiError.
3 4 5 |
# File 'lib/bb_statements/api_error.rb', line 3 def initialize() super end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/bb_statements/api_error.rb', line 12 def @message || "Error message: the server returns an error" end |
#to_s ⇒ Object
Override to_s to display a friendly error message
8 9 10 |
# File 'lib/bb_statements/api_error.rb', line 8 def to_s end |