Class FacturXException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.fourjs.report.facturx.FacturXException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComputationException, ValidationException
The common checked superclass of the exceptions raised by the Factur-X API. It signals that an
invoice could not be produced or checked — for instance that a computed value is missing an
input it needs (
ComputationException) or that a required element was not supplied
(ValidationException) — and is the exception type declared by
AbstractInvoice.toXML(java.io.PrintStream), AbstractInvoice.getXMLAsDataURL() and
AbstractInvoice.toJUnitJavaSourceCode(java.io.PrintStream, String, String, String). Catching
FacturXException therefore handles every failure specific to the API in one place.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFacturXException(String message) Constructs the exception with a detail message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FacturXException
Constructs the exception with a detail message.- Parameters:
message- the detail message, retrievable withThrowable.getMessage()
-