Class InformationException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by sqlg2.db.InformationException
All Implemented Interfaces:

public abstract class InformationException
extends java.lang.Exception

This is "informational" exception. If a business method raises exception of this type, and isError() == false then runtime system does not roll back transaction - call is finished successfully, but exception is rethrown. That way you can pass information about exceptional situation without losing DB changes. Default value of isError() == true.

See Also:
Serialized Form

Constructor Summary
protected InformationException()
protected InformationException(java.lang.String s)
Method Summary
 boolean isError()
          Defaults to true.
 void setError(boolean error)
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


protected InformationException()


protected InformationException(java.lang.String s)
Method Detail


public boolean isError()
Defaults to true.


public void setError(boolean error)