Deputy.Error (Deputy v0.2.1)

View Source

Error types for Deputy API client operations.

This module provides standardized error structs for different types of errors that can occur when interacting with the Deputy API.

Summary

Functions

Converts a raw HTTP error response into the appropriate error struct.

Types

Functions

from_response(error)

@spec from_response(map()) :: t()

Converts a raw HTTP error response into the appropriate error struct.

This function analyzes the HTTP response and creates a specific error struct based on the status code and response body structure.