Function createArvoError

Creates a standardized ArvoError payload from an Error object. This utility ensures consistent error reporting across the event system by extracting and structuring key error information.

  • Parameters

    • error: Error

      The source Error object to convert

    Returns {
        errorMessage: string;
        errorName: string;
        errorStack: null | string;
    }

    ArvoErrorType - The standardized error payload

    • errorMessage: string
    • errorName: string
    • errorStack: null | string