public class InvalidTaxException extends OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidTaxFault">
<xs:complexType>
<xs:attribute name="reason" type="InvalidTaxReasonType"/>
</xs:complexType>
</xs:element><xs:simpleType name="InvalidTaxReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="requiredInfoMissingOrMalformed"/>
<xs:enumeration value="noCountryTaxPolicyDefined"/>
<xs:enumeration value="badRateValue"/>
<xs:enumeration value="badCountryCode"/>
<xs:enumeration value="invalidTaxDefinition"/>
<xs:enumeration value="invalidTaxInitialization"/>
<xs:enumeration value="invalidTaxFrameworkFeature"/>
<xs:enumeration value="taxerNotAvailable"/>
<xs:enumeration value="noVatTaxArea" />
<xs:enumeration value="noEZTaxTSTypes"/>
<xs:enumeration value="invalidTaxPrecision"/>
<xs:enumeration value="invalidTaxRoundingMode"/>
<xs:enumeration value="taxerCannotCalculateTax"/>
<xs:enumeration value="badTaxRateCode"/>
<xs:enumeration value="noVatRuleFound"/>
<xs:enumeration value="missingSupplierCountryCode"/>
<xs:enumeration value="missingCustomerCountryCode"/>
<xs:enumeration value="missingBusinessCategory"/>
<xs:enumeration value="missingB2bTaxationPlace"/>
<xs:enumeration value="missingB2cTaxationPlace"/>
<xs:enumeration value="invalidSupplierCountryCode"/>
<xs:enumeration value="internalError"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
BAD_COUNTRY_CODE
3: Bad country code for tax code matching.
|
static int |
BAD_RATE_VALUE
2: Bad rate value for this tax.
|
static int |
BAD_TAX_RATE_CODE
19: Bad tax rate code.
|
static int |
INTERNAL_ERROR
-1: Other internal reasons.
|
static int |
INVALID_SUPPLIER_COUNTRY_CODE
26: Invalid supplier country code.
|
static int |
INVALID_TAX_DEFINITION
8: The tax data are not valid.
|
static int |
INVALID_TAX_FRAMEWORK
10: Bad tax framework feature.
|
static int |
INVALID_TAX_INIT
9: The tax framework initialization is not correct.
|
static int |
INVALID_TAX_PRECISION
16: The specified tax precision is out of the supported range.
|
static int |
INVALID_TAX_ROUNDING_MODE
17: The specified tax rounding mode is unknown.
|
static int |
MISSING_B2B_TAXATION_PLACE
24: Missing B2B taxation place.
|
static int |
MISSING_B2C_TAXATION_PLACE
25: Missing B2B taxation place.
|
static int |
MISSING_BUSINESS_CATEGORY
23: Missing business category.
|
static int |
MISSING_CUSTOMER_COUNTRY_CODE
22: Missing customer country code.
|
static int |
MISSING_SUPPLIER_COUNTRY_CODE
21: Missing supplier country code.
|
static int |
NO_COUNTRY_TAX_POLICY_DEFINED
1: No country tax policy defined for this country.
|
static int |
NO_EZTAX_TS_TYPE
15: No EZTax transaction/service type available in database.
|
static int |
NO_VAT_RULE_FOUND
20: No VAT rule available in database.
|
static int |
NO_VAT_TAX_AREA
14: No VAT tax area available in database.
|
static int |
REQUIRED_INFO_MISSING_OR_MALFORMED
0: Required information missing for retrieving tax code.
|
static int |
TAXER_CANNOT_CALCULATE_TAX
18: The tax cannot be calculated.
|
static int |
TAXER_NOT_AVAILABLE
13: Taxer not available.
|
| Constructor and Description |
|---|
InvalidTaxException()
Builds an InvalidTaxException.
|
InvalidTaxException(int reason)
Builds an InvalidTaxException.
|
InvalidTaxException(int reason,
java.lang.String message)
Builds an InvalidTaxException.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage()
Gets the message.
|
java.lang.String |
getOperandReference()
Gets the code or the reference (if no code exists) that identifies the operand of the operation request;
If the operation is not auditable, the operand reference is
null. |
int |
getReason()
Returns the reason of the exception.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
java.lang.String |
toString()
Returns the reason of the exception in readable format.
|
public static final int REQUIRED_INFO_MISSING_OR_MALFORMED
public static final int NO_COUNTRY_TAX_POLICY_DEFINED
public static final int BAD_RATE_VALUE
public static final int BAD_COUNTRY_CODE
public static final int INVALID_TAX_DEFINITION
public static final int INVALID_TAX_INIT
public static final int INVALID_TAX_FRAMEWORK
public static final int TAXER_NOT_AVAILABLE
public static final int NO_VAT_TAX_AREA
public static final int NO_EZTAX_TS_TYPE
public static final int INVALID_TAX_PRECISION
public static final int INVALID_TAX_ROUNDING_MODE
public static final int TAXER_CANNOT_CALCULATE_TAX
public static final int BAD_TAX_RATE_CODE
public static final int NO_VAT_RULE_FOUND
public static final int MISSING_SUPPLIER_COUNTRY_CODE
public static final int MISSING_CUSTOMER_COUNTRY_CODE
public static final int MISSING_BUSINESS_CATEGORY
public static final int MISSING_B2B_TAXATION_PLACE
public static final int MISSING_B2C_TAXATION_PLACE
public static final int INVALID_SUPPLIER_COUNTRY_CODE
public static final int INTERNAL_ERROR
public InvalidTaxException()
public InvalidTaxException(int reason)
reason - The reason of the exceptionpublic InvalidTaxException(int reason,
java.lang.String message)
reason - The reason of the exceptionmessage - The message of the exceptionpublic int getReason()
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultgetOperandReference in class OperationFailureException