Class: Treblle::Models::Response::Exception
- Inherits:
-
Object
- Object
- Treblle::Models::Response::Exception
- Defined in:
- lib/treblle/models/response/exception.rb
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#trace ⇒ Object
readonly
Returns the value of attribute trace.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(response) ⇒ Exception
constructor
A new instance of Exception.
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 = @file_path, @line_number = get_exception_path_and_line end |
Instance Attribute Details
#file_path ⇒ Object (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_number ⇒ Object (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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
15 16 17 |
# File 'lib/treblle/models/response/exception.rb', line 15 def end |
#trace ⇒ Object (readonly)
Returns the value of attribute trace.
15 16 17 |
# File 'lib/treblle/models/response/exception.rb', line 15 def trace @trace end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
15 16 17 |
# File 'lib/treblle/models/response/exception.rb', line 15 def type @type end |