Class: Treblle::Models::Response::Exception

Inherits:
Object
  • Object
show all
Defined in:
lib/treblle/models/response/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Exception

Returns a new instance of Exception.



7
8
9
10
11
12
13
# File 'lib/treblle/models/response/exception.rb', line 7

def initialize(response)
  @response = response
  @trace = fetch_trace
  @type = fetch_type
  @message = fetch_message
  @file_path, @line_number = get_exception_path_and_line
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



15
16
17
# File 'lib/treblle/models/response/exception.rb', line 15

def file_path
  @file_path
end

#line_numberObject (readonly)

Returns the value of attribute line_number.



15
16
17
# File 'lib/treblle/models/response/exception.rb', line 15

def line_number
  @line_number
end

#messageObject (readonly)

Returns the value of attribute message.



15
16
17
# File 'lib/treblle/models/response/exception.rb', line 15

def message
  @message
end

#traceObject (readonly)

Returns the value of attribute trace.



15
16
17
# File 'lib/treblle/models/response/exception.rb', line 15

def trace
  @trace
end

#typeObject (readonly)

Returns the value of attribute type.



15
16
17
# File 'lib/treblle/models/response/exception.rb', line 15

def type
  @type
end