java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.xlate.edi.stream.EDIValidationException
- All Implemented Interfaces:
java.io.Serializable
public class EDIValidationException
extends java.lang.RuntimeException
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.CharSequencedataprotected EDIStreamValidationErrorerrorprotected EDIStreamEventeventprotected Locationlocation -
Constructor Summary
Constructors Constructor Description EDIValidationException(EDIStreamEvent event, EDIStreamValidationError error, Location location, java.lang.CharSequence data) -
Method Summary
Modifier and Type Method Description java.lang.CharSequencegetData()EDIStreamValidationErrorgetError()EDIStreamEventgetEvent()LocationgetLocation()EDIValidationExceptiongetNextException()Retrieves the exception chained to thisEDIValidationExceptionobject by setNextException(EDIValidationException ex).voidsetNextException(EDIValidationException ex)Adds anEDIValidationExceptionobject to the end of the chain.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
event
-
error
-
location
-
data
protected final transient java.lang.CharSequence data
-
-
Constructor Details
-
EDIValidationException
public EDIValidationException(EDIStreamEvent event, EDIStreamValidationError error, Location location, java.lang.CharSequence data)
-
-
Method Details
-
getEvent
-
getError
-
getLocation
-
getData
public java.lang.CharSequence getData() -
getNextException
Retrieves the exception chained to thisEDIValidationExceptionobject by setNextException(EDIValidationException ex).- Returns:
- the next
EDIValidationExceptionobject in the chain;nullif there are none - See Also:
setNextException(io.xlate.edi.stream.EDIValidationException)
-
setNextException
Adds anEDIValidationExceptionobject to the end of the chain.- Parameters:
ex- the new exception that will be added to the end of theEDIValidationExceptionchain- See Also:
getNextException()
-