• Creates an error handler function that converts an error into a standardized error response.

    Parameters

    • error: unknown

      The error object to handle.

    Returns {
        message: string;
        result: string;
    }

    • The standardized error response object.
    • message: string
    • result: string

    Function

    Throws

    • If the provided error is not an object or null.

Generated using TypeDoc