class Ashikawa::Core::ServerError

The server had an error during the request

Public Class Methods

new(status_code) click to toggle source

Create a new instance

@param [Fixnum] status_code @return RuntimeError @api private

# File lib/ashikawa-core/exceptions/server_error.rb, line 10
def initialize(status_code)
  @status_code = status_code
end

Public Instance Methods

to_s() click to toggle source

String representation of the exception

@return String @api private

# File lib/ashikawa-core/exceptions/server_error.rb, line 18
def to_s
  @status_code
end