TaxApiException Class

Contains details about any exceptions during the tax calculation process. Extends the ApexBaseException class.

Namespace

CommerceTax

TaxApiException Constructors

Learn more about the available constructors with the TaxApiException class.

The TaxApiException class includes these constructors.

TaxApiException(var1, var2)

Initializes the TaxApiException class using an Exception and a string to provide more details about the exception. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

Signature

global TaxApiException(String var1, Exception var2)

Parameters

  • var1:

    Type: String

    Text that provides more information about

    the returned exception.

  • var2:

    Type: Exception

    An exception denotes an error that disrupts the normal flow of code execution. You can use Apex built-in exceptions or create custom exceptions. All exceptions have common methods.

TaxApiException(var1)

Initializes the TaxApiException class using an Exception. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

Signature

global TaxApiException(Exception var1)

Parameters

  • var1:

    Type: Exception

    An exception denotes an error that disrupts the normal flow of code execution. You can use Apex built-in exceptions or create custom exceptions. All exceptions have common methods.

TaxApiException()

Initializes the TaxApiException class without any initialized parameters. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

Signature

global TaxApiException()