Package io.xlate.edi.stream
Class EDIValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.xlate.edi.stream.EDIValidationException
-
- All Implemented Interfaces:
Serializable
public class EDIValidationException extends RuntimeException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CharSequencedataprotected EDIStreamValidationErrorerrorprotected EDIStreamEventeventprotected Locationlocation
-
Constructor Summary
Constructors Constructor Description EDIValidationException(EDIStreamEvent event, EDIStreamValidationError error, Location location, CharSequence data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, toString
-
-
-
-
Field Detail
-
event
protected final EDIStreamEvent event
-
error
protected final EDIStreamValidationError error
-
location
protected final transient Location location
-
data
protected final transient CharSequence data
-
-
Constructor Detail
-
EDIValidationException
public EDIValidationException(EDIStreamEvent event, EDIStreamValidationError error, Location location, CharSequence data)
-
-
Method Detail
-
getEvent
public EDIStreamEvent getEvent()
-
getError
public EDIStreamValidationError getError()
-
getLocation
public Location getLocation()
-
getData
public CharSequence getData()
-
getNextException
public EDIValidationException 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
public void setNextException(EDIValidationException ex)
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()
-
-