java.lang.Object
java.lang.Throwable
java.lang.Exception
io.xlate.edi.stream.EDIStreamException
- All Implemented Interfaces:
Serializable
Checked exception that may be thrown by EDIInputFactory, EDIStreamReader,
EDIOutputFactory, and EDIStreamWriter in the processing of EDI data.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEDIStreamException(String message) Construct an exception with the associated message.EDIStreamException(String message, Location location) Construct an exception with the associated message, exception and location.EDIStreamException(String message, Location location, Throwable cause) Construct an exception with the associated message, exception and location.EDIStreamException(Throwable cause) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringbuildMessage(String message, Location location) Build a readable message that includes a detail message together with the location of the exceptionGets the location of the exceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
location
Location of the exception
-
-
Constructor Details
-
EDIStreamException
Construct an exception with the associated message.- Parameters:
message- the message to report
-
EDIStreamException
Deprecated.Construct an exception with the associated exception- Parameters:
cause- a nested exception
-
EDIStreamException
Construct an exception with the associated message, exception and location.- Parameters:
message- the message to reportlocation- the location of the errorcause- a nested error / exception
-
EDIStreamException
Construct an exception with the associated message, exception and location.- Parameters:
message- the message to reportlocation- the location of the error
-
-
Method Details
-
buildMessage
Build a readable message that includes a detail message together with the location of the exception- Parameters:
message- detail message for the exceptionlocation- location of the exception- Returns:
- concatenation of the detail message and location if the message does not already contain the location
-
getLocation
Gets the location of the exception- Returns:
- the location of the exception, may be null if none is available
-