caldav/error

Types

Describes the error cases that can be produced by the library.

pub type Error {
  TransportError(message: String)
  HttpError(status: Int, body: String)
  XmlError(message: String)
  ProtocolError(message: String)
  NotFound
  Unauthorized
  Conflict
  ValidationError(message: String)
  UnknownError
}

Constructors

  • TransportError(message: String)
  • HttpError(status: Int, body: String)
  • XmlError(message: String)
  • ProtocolError(message: String)
  • NotFound
  • Unauthorized
  • Conflict
  • ValidationError(message: String)
  • UnknownError

Values

pub fn to_string(err: Error) -> String

Renders an error as a readable string.

Search Document