Exception: Ashikawa::Core::ServerError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Ashikawa::Core::ServerError
- Defined in:
- lib/ashikawa-core/exceptions/server_error.rb
Overview
The server had an error during the request
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(status_code) ⇒ Object
constructor
private
Create a new instance.
-
#to_s ⇒ Object
private
String representation of the exception.
Constructor Details
#initialize(status_code) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a new instance
11 12 13 |
# File 'lib/ashikawa-core/exceptions/server_error.rb', line 11 def initialize(status_code) @status_code = status_code end |
Instance Method Details
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
String representation of the exception
19 20 21 |
# File 'lib/ashikawa-core/exceptions/server_error.rb', line 19 def to_s @status_code end |