Class: ExceptionHandle

Inherits:
Object
  • Object
show all
Defined in:
lib/sqs_web/application/exception_handle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ExceptionHandle

Returns a new instance of ExceptionHandle.



4
5
6
7
8
# File 'lib/sqs_web/application/exception_handle.rb', line 4

def initialize(error)
  @error_class = error.inspect.to_s
  @error_message = error.message.to_s
  @error_backtrace = error.backtrace.to_s
end

Instance Attribute Details

#error_backtraceObject (readonly)

Returns the value of attribute error_backtrace.



2
3
4
# File 'lib/sqs_web/application/exception_handle.rb', line 2

def error_backtrace
  @error_backtrace
end

#error_classObject (readonly)

Returns the value of attribute error_class.



2
3
4
# File 'lib/sqs_web/application/exception_handle.rb', line 2

def error_class
  @error_class
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



2
3
4
# File 'lib/sqs_web/application/exception_handle.rb', line 2

def error_message
  @error_message
end