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

public class FacturXException extends Exception
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 Details

    • FacturXException

      public FacturXException(String message)
      Constructs the exception with a detail message.
      Parameters:
      message - the detail message, retrievable with Throwable.getMessage()