Error types and utilities for CalDAV operations.
All CalDAVEx functions return errors as {:error, %CalDAVEx.Error{}}.
Summary
Functions
Creates a conflict error (HTTP 409)
Creates an HTTP error with status code and response body
Creates a not found error (HTTP 404)
Creates a CalDAV protocol error
Converts an error to a human-readable string.
Creates a transport error (network/connection issues)
Creates an unauthorized error (HTTP 401)
Creates an XML parsing error
Types
Functions
Creates a conflict error (HTTP 409)
Creates an HTTP error with status code and response body
Creates a not found error (HTTP 404)
Creates a CalDAV protocol error
Converts an error to a human-readable string.
Examples
error = CalDAVEx.Error.http(404, "Not found")
CalDAVEx.Error.to_string(error)
# => "[caldav_ex] HTTP error: HTTP 404 - Not found"
Creates a transport error (network/connection issues)
Creates an unauthorized error (HTTP 401)
Creates an XML parsing error