Module Stanza.Error

type error_type =
| Auth
| Cancel
| Continue
| Modify
| Wait
type condition =
| BadRequest
| Conflict
| FeatureNotImplemented
| Forbidden
| Gone
| InternalServerError
| ItemNotFound
| JidMalformed
| NotAcceptable
| NotAllowed
| NotAuthorized
| PolicyViolation
| RecipientUnavailable
| Redirect
| RegistrationRequired
| RemoteServerNotFound
| RemoteServerTimeout
| ResourceConstraint
| ServiceUnavailable
| SubscriptionRequired
| UndefinedCondition
| UnexpectedRequest
type t = error_type * condition * string option
val pp : t Fmt.t

pp ppf t will output a human readable representation of the error to the formatter ppf.

val to_string : t -> string
val parser : t Xmlc.Parser.t