Class: Atatus::Error Private
- Inherits:
-
Object
- Object
- Atatus::Error
- Defined in:
- lib/atatus/error.rb,
lib/atatus/error/log.rb,
lib/atatus/error/exception.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Instance Attribute Summary collapse
- #context ⇒ Object private
- #culprit ⇒ Object private
- #exception ⇒ Object private
- #id ⇒ Object private
- #log ⇒ Object private
- #parent_id ⇒ Object private
- #timestamp ⇒ Object readonly private
- #trace_id ⇒ Object private
- #transaction ⇒ Object private
- #transaction_id ⇒ Object private
- #transaction_name ⇒ Object private
Instance Method Summary collapse
-
#initialize(culprit: nil, context: nil) ⇒ Error
constructor
private
A new instance of Error.
- #inspect ⇒ Object private
Constructor Details
#initialize(culprit: nil, context: nil) ⇒ Error
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Error.
28 29 30 31 32 33 |
# File 'lib/atatus/error.rb', line 28 def initialize(culprit: nil, context: nil) @id = SecureRandom.hex(16) @culprit = culprit @timestamp = Util.micros @context = context end |
Instance Attribute Details
#context ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def context @context end |
#culprit ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def culprit @culprit end |
#exception ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def exception @exception end |
#id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def id @id end |
#log ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def log @log end |
#parent_id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def parent_id @parent_id end |
#timestamp ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/atatus/error.rb', line 37 def @timestamp end |
#trace_id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def trace_id @trace_id end |
#transaction ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def transaction @transaction end |
#transaction_id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def transaction_id @transaction_id end |
#transaction_name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/atatus/error.rb', line 35 def transaction_name @transaction_name end |
Instance Method Details
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/atatus/error.rb', line 39 def inspect "<Atatus::Error id:#{id}" \ " culprit:#{culprit}" \ " timestamp:#{}" \ " transaction_id:#{transaction_id}" \ " transaction_name:#{transaction_name}" \ " trace_id:#{trace_id}" \ " exception:#{exception.inspect}" \ '>' end |