Class: BreakerMachines::ErrorInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/breaker_machines/types.rb

Overview

Represents information about the last error that occurred

Returns:

  • (String)

    error_class - the error class name

  • (String)

    message - the error message

  • (Float, nil)

    occurred_at - the monotonic time when the error occurred

Instance Attribute Summary collapse

Instance Attribute Details

#error_classObject (readonly)

Returns the value of attribute error_class

Returns:

  • (Object)

    the current value of error_class



24
25
26
# File 'lib/breaker_machines/types.rb', line 24

def error_class
  @error_class
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



24
25
26
# File 'lib/breaker_machines/types.rb', line 24

def message
  @message
end

#occurred_atObject (readonly)

Returns the value of attribute occurred_at

Returns:

  • (Object)

    the current value of occurred_at



24
25
26
# File 'lib/breaker_machines/types.rb', line 24

def occurred_at
  @occurred_at
end