Class: KJess::Response::ServerError

Inherits:
KJess::Response show all
Defined in:
lib/kjess/response/server_error.rb

Constant Summary

Constants inherited from KJess::Response

Registry

Constants inherited from Protocol

Protocol::CRLF

Instance Attribute Summary

Attributes inherited from Protocol

#args, #raw_args

Instance Method Summary collapse

Methods inherited from KJess::Response

parse, #parse_options_to_args, #read_more, registry

Methods inherited from Protocol

arity, #initialize, keyword, #keyword, #parse_options_to_args, register, #to_protocol

Constructor Details

This class inherits a constructor from KJess::Protocol

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/kjess/response/server_error.rb', line 10

def error?
  true
end

#exceptionObject

Raises:



14
15
16
# File 'lib/kjess/response/server_error.rb', line 14

def exception
  raise KJess::ServerError, message
end

#messageObject



6
7
8
# File 'lib/kjess/response/server_error.rb', line 6

def message
  args.join(' ')
end