Exception: Ashikawa::Core::ServerError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ashikawa-core/exceptions/server_error.rb

Overview

The server had an error during the request

Direct Known Subclasses

JsonError

Instance Method Summary collapse

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

Parameters:

  • status_code (Fixnum)


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_sObject

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

Returns:

  • String



19
20
21
# File 'lib/ashikawa-core/exceptions/server_error.rb', line 19

def to_s
  @status_code
end