Class ISOVException

All Implemented Interfaces:
Serializable, Loggeable

public class ISOVException extends ISOException
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 Details

    • treated

      protected boolean 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

      public ISOVException(String Description)
      Constructs a validator exception with the given message.
      Parameters:
      Description - failure description
    • ISOVException

      public ISOVException(String Description, ISOComponent errComponent)
      Constructs a validator exception with the given message and the offending error component.
      Parameters:
      Description - failure description
      errComponent - the component that produced the error
  • Method Details

    • getErrComponent

      Returns the component that produced the validation error.
      Returns:
      the offending ISOComponent, or null if not set
    • treated

      public boolean treated()
      Indicates whether this exception has already been handled by a catch clause.
      Returns:
      the current treated flag
    • setErrComponent

      public void setErrComponent(ISOComponent c)
      Replaces the offending component associated with this exception.
      Parameters:
      c - the new error component
    • setTreated

      public void setTreated(boolean Treated)
      Marks this exception as treated (or untreated) by a containing catch clause.
      Parameters:
      Treated - new treated flag