Class ISOVException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jpos.iso.ISOException
org.jpos.iso.validator.ISOVException
- All Implemented Interfaces:
Serializable, Loggeable
This type of exception is raised while validating jPOS ISOComponents.
Contains an error component instance referencing to the error.
Title: jPOS
Description: Java Framework for Financial Systems
Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.
Company: www.jPOS.org
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ISOComponentThe component flagged by this validation error.protected booleanflag indicating if the exception was catched in any try/catch clause. -
Constructor Summary
ConstructorsConstructorDescriptionISOVException(String Description) Constructs a validator exception with the given message.ISOVException(String Description, ISOComponent errComponent) Constructs a validator exception with the given message and the offending error component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the component that produced the validation error.voidReplaces the offending component associated with this exception.voidsetTreated(boolean Treated) Marks this exception as treated (or untreated) by a containingcatchclause.booleantreated()Indicates whether this exception has already been handled by acatchclause.Methods inherited from class ISOException
dump, getNested, getTagName, printStackTrace, printStackTrace, printStackTrace, toStringModifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) Dumps a human-readable representation of this exception to the print stream.Returns the nested (wrapped) exception, if any.protected StringReturns the XML tag name used when dumping this exception.voidvoidvoidtoString()Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTraceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Loggeable
dumpModifier and TypeMethodDescriptiondefault voiddump(PrintStream p, String indent, LogRenderer.Type type) Dumps a representation of this object using the specified renderer type.
-
Field Details
-
treated
flag indicating if the exception was catched in any try/catch clause. It is used to determine if it is necessary the replacement of the component by the iso-error-component in the exception instance -
errComponent
The component flagged by this validation error.
-
-
Constructor Details
-
ISOVException
Constructs a validator exception with the given message.- Parameters:
Description- failure description
-
ISOVException
Constructs a validator exception with the given message and the offending error component.- Parameters:
Description- failure descriptionerrComponent- the component that produced the error
-
-
Method Details
-
getErrComponent
Returns the component that produced the validation error.- Returns:
- the offending
ISOComponent, ornullif not set
-
treated
Indicates whether this exception has already been handled by acatchclause.- Returns:
- the current treated flag
-
setErrComponent
Replaces the offending component associated with this exception.- Parameters:
c- the new error component
-
setTreated
Marks this exception as treated (or untreated) by a containingcatchclause.- Parameters:
Treated- new treated flag
-