UPnPException class

UDA 1.1 §3.2.5 — UPnP error codes returned in SOAP Fault responses.

HTTP 500 responses carry a SOAP Fault with <UPnPError> containing an <errorCode> (401–899) and optional <errorDescription>.

Implemented types

Constructors

UPnPException({required int errorCode, String errorDescription = '', String? actionName})

Properties

actionName → String?
The SOAP action that triggered the error, if known.
final
errorCode → int
Numeric error code per UDA 1.1 §3.2.5 Table 3-3.
final
errorDescription → String
Human-readable error description. May be empty.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

tryParseFromBody(XmlElement body, {String? actionName}) → UPnPException?
Parses a UPnP SOAP Fault from a <Body> element containing a <Fault>.