Exception: Meshtastic::Admin::RoutingError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/meshtastic/admin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fromObject (readonly)

Returns the value of attribute from.



11
12
13
# File 'lib/meshtastic/admin.rb', line 11

def from
  @from
end

#reasonObject (readonly)

Returns the value of attribute reason.



11
12
13
# File 'lib/meshtastic/admin.rb', line 11

def reason
  @reason
end

#request_idObject (readonly)

Returns the value of attribute request_id.



11
12
13
# File 'lib/meshtastic/admin.rb', line 11

def request_id
  @request_id
end