The reason code
Return a unique hashcode for this object. If a class overrides hash() then it must ensure if equals() returns true for any two objects then they have same hash code.
Is this an error reason code?
Get the programatic name for this enum.
Return ordinal value which is a zero based index into values.
Get an immutable representation of this instance or throw NotImmutableErr if this object cannot be represented as an immutable:
Always returns name().
Trap a dynamic call for handling. Dynamic calls are invoked with the -> shortcut operator:
a->x a.trap("x", null)
a->x() a.trap("x", null)
a->x = b a.trap("x", [b])
a->x(b) a.trap("x", [b])
a->x(b, c) a.trap("x", [b, c])
The default implementation provided by Obj attempts to use reflection. If name maps to a method, it is invoked with the specified arguments. If name maps to a field and args.size is zero, get the field. If name maps to a field and args.size is one, set the field and return args[0]. Otherwise throw UnknownSlotErr.
The packet types this code can be used for
Get the MQTT 3.1.1 code
This method called whenever an it-block is applied to an
object. The default implementation calls the function with this
,
and then returns this
.
Static
administrative_Static
bad_Static
bad_Static
bannedStatic
client_Static
connection_Static
continue_Static
disconnect_Static
echoWrite x.toStr
to standard output followed by newline. If x
is null then print "null". If no argument is provided then
print an empty line.
Optional
x: JsObjStatic
fromOptional
checked: booleanStatic
fromReturn the ReasonCode instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
Optional
checked: booleanStatic
granted_Static
granted_Static
granted_Static
implementation_Static
keep_Static
malformed_Static
max_Static
message_Static
no_Static
no_Static
normal_Static
not_Static
not_Static
packet_Static
packet_Static
packet_Static
payload_Static
protocol_Static
qos_Static
quota_Static
reauthenticateStatic
receive_Static
retain_Static
server_Static
server_Static
server_Static
server_Static
session_Static
shared_Static
subscription_Static
successStatic
topic_Static
topic_Static
topic_Static
unspecified_Static
unsupported_Static
use_Static
valsList of ReasonCode values indexed by ordinal
Static
wildcard_
MQTT reason codes. These codes are based off the version 5 spec but the code for reasons that have a mapping to 3.1.1 codes can be obtained using
v3()
.