Exception: Jimson::Server::Error::ApplicationError

Inherits:
Jimson::Server::Error show all
Defined in:
lib/jimson/server/error.rb

Constant Summary

Constants inherited from Jimson::Server::Error

CODES

Instance Attribute Summary

Attributes inherited from Jimson::Server::Error

#code, #message

Instance Method Summary collapse

Methods inherited from Jimson::Server::Error

#to_h

Constructor Details

#initialize(err, show_error = false) ⇒ ApplicationError

Returns a new instance of ApplicationError.



50
51
52
53
54
# File 'lib/jimson/server/error.rb', line 50

def initialize(err, show_error = false)
  msg = "Server application error"
  msg += ': ' + err.message + ' at ' + err.backtrace.first if show_error
  super(-32099, msg)
end