• Function to build the error message. Here, we can customize the error message format.

    Type Parameters

    • TErrorDataType

    Parameters

    • methodName: string

      The name of the method that failed.

    • errorMessage: string

      The error message.

    • inputData: TErrorDataType

      The input data that caused the error.

    • OptionalinnerError: Error

      The inner error that caused the error.

    Returns string

    The error message as a string.