Yaaf.Xmpp.Runtime


XmlStreamError

Defined in Yaaf.Xmpp.Runtime.dll.

Union Cases

Union CaseDescription
BadFormat
Signature:
The entity has sent XML that cannot be processed.
BadNamespacePrefix
Signature:
The entity has sent a namespace prefix that is unsupported, or has sent no namespace prefix on an element that needs such a prefix (see Section 11.2).
Conflict
Signature:
The server either (1) is closing the existing stream for this entity because a new stream has been initiated that conflicts with the existing stream, or (2) is refusing a new stream for this entity because allowing the new stream would conflict with an existing stream (e.g., because the server allows only a certain number of connections from the same IP address or allows only one server-to-server stream for a given domain pair as a way of helping to ensure in-order processing as described under Section 10.1).
ConnectionTimeout
Signature:
One party is closing the stream because it has reason to believe that the other party has permanently lost the ability to communicate over the stream. The lack of ability to communicate can be discovered using various methods, such as whitespace keepalives as specified under Section 4.4, XMPP-level pings as defined in [XEP‑0199], and XMPP Stream Management as defined in [XEP‑0198].
HostGone
Signature:
The value of the 'to' attribute provided in the initial stream header corresponds to an FQDN that is no longer serviced by the receiving entity.
HostUnknown
Signature:
The value of the 'to' attribute provided in the initial stream header does not correspond to an FQDN that is serviced by the receiving entity.
ImproperAddressing
Signature:
A stanza sent between two servers lacks a 'to' or 'from' attribute, the 'from' or 'to' attribute has no value, or the value violates the rules for XMPP addresses [XMPP‑ADDR].
InternalServerError
Signature:
The server has experienced a misconfiguration or other internal error that prevents it from servicing the stream.
InvalidFrom
Signature:
The data provided in a 'from' attribute does not match an authorized JID or validated domain as negotiated (1) between two servers using SASL or Server Dialback, or (2) between a client and a server via SASL authentication and resource binding.
InvalidNamespace
Signature:
The stream namespace name is something other than "http://etherx.jabber.org/streams" (see Section 11.2) or the content namespace declared as the default namespace is not supported (e.g., something other than "jabber:client" or "jabber:server").
InvalidXml
Signature:
The entity has sent invalid XML over the stream to a server that performs validation (see Section 11.4).
NotAuthorized
Signature:
The entity has attempted to send XML stanzas or other outbound data before the stream has been authenticated, or otherwise is not authorized to perform an action related to stream negotiation; the receiving entity MUST NOT process the offending data before sending the stream error.
NotWellFormed
Signature:
The initiating entity has sent XML that violates the well-formedness rules of [XML] or [XML‑NAMES].
PolicyViolation
Signature:
The entity has violated some local service policy (e.g., a stanza exceeds a configured size limit); the server MAY choose to specify the policy in the element or in an application-specific condition element.
RemoteConnectionFailed
Signature:
The server is unable to properly connect to a remote entity that is needed for authentication or authorization (e.g., in certain scenarios related to Server Dialback [XEP‑0220]); this condition is not to be used when the cause of the error is within the administrative domain of the XMPP service provider, in which case the condition is more appropriate.
Reset
Signature:
The server is closing the stream because it has new (typically security-critical) features to offer, because the keys or certificates used to establish a secure context for the stream have expired or have been revoked during the life of the stream (Section 13.7.2.3), because the TLS sequence number has wrapped (Section 5.3.5), etc. The reset applies to the stream and to any security context established for that stream (e.g., via TLS and SASL), which means that encryption and authentication need to be negotiated again for the new stream (e.g., TLS session resumption cannot be used).
ResourceConstraint
Signature:
The server lacks the system resources necessary to service the stream.
RestrictedXml
Signature:
The entity has attempted to send restricted XML features such as a comment, processing instruction, DTD subset, or XML entity reference (see Section 11.1).
SeeOtherHost
Signature:
The server will not provide service to the initiating entity but is redirecting traffic to another host under the administrative control of the same service provider. The XML character data of the element returned by the server MUST specify the alternate FQDN or IP address at which to connect, which MUST be a valid domainpart or a domainpart plus port number (separated by the ':' character in the form "domainpart:port"). If the domainpart is the same as the source domain, derived domain, or resolved IPv4 or IPv6 address to which the initiating entity originally connected (differing only by the port number), then the initiating entity SHOULD simply attempt to reconnect at that address. (The format of an IPv6 address MUST follow [IPv6‑ADDR], which includes the enclosing the IPv6 address in square brackets '[' and ']' as originally defined by [URI].) Otherwise, the initiating entity MUST resolve the FQDN specified in the element as described under Section 3.2.
SystemShutdown
Signature:
The server is being shut down and all active streams are being closed.
UndefinedCondition
Signature:
The error condition is not one of those defined by the other conditions in this list; this error condition SHOULD NOT be used except in conjunction with an application-specific condition.
UnknownError(string)
Signature: string
UnsupportedEncoding
Signature:
The initiating entity has encoded the stream in an encoding that is not supported by the server (see Section 11.6) or has otherwise improperly encoded the stream (e.g., by violating the rules of the [UTF‑8] encoding).
UnsupportedFeature
Signature:
The receiving entity has advertised a mandatory-to-negotiate stream feature that the initiating entity does not support, and has offered no other mandatory-to-negotiate feature alongside the unsupported feature.
UnsupportedStanzaType
Signature:
The initiating entity has sent a first-level child of the stream that is not supported by the server, either because the receiving entity does not understand the namespace or because the receiving entity does not understand the element name for the applicable namespace (which might be the content namespace declared as the default namespace).
UnsupportedVersion
Signature:
The 'version' attribute provided by the initiating entity in the stream header specifies a version of XMPP that is not supported by the server.

Instance members

Instance memberDescription
GetMessage(msg)
Signature: (msg:string option) -> string
XmlString
Signature: string

Static members

Static memberDescription
Parse(s)
Signature: s:string -> XmlStreamError
Fork me on GitHub