Exception: Meshtastic::Admin::RoutingError
- Inherits:
-
StandardError
- Object
- StandardError
- Meshtastic::Admin::RoutingError
- Defined in:
- lib/meshtastic/admin.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#initialize(reason, request_id, from) ⇒ RoutingError
constructor
A new instance of RoutingError.
Constructor Details
#initialize(reason, request_id, from) ⇒ RoutingError
Returns a new instance of RoutingError.
13 14 15 16 17 18 |
# File 'lib/meshtastic/admin.rb', line 13 def initialize(reason, request_id, from) @reason = reason @request_id = request_id @from = from super("Admin routing failure: #{reason} (request #{request_id})") end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
11 12 13 |
# File 'lib/meshtastic/admin.rb', line 11 def from @from end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
11 12 13 |
# File 'lib/meshtastic/admin.rb', line 11 def reason @reason end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
11 12 13 |
# File 'lib/meshtastic/admin.rb', line 11 def request_id @request_id end |