org.omus.db
Class DbException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.omus.db.DbException
All Implemented Interfaces:
java.io.Serializable

public class DbException
extends java.lang.Exception

Thrown when an error occurs during execution of a transaction. You will rarely create a DbException object yourself, but many methods in the Oregano Server API throw this Exception, which you have to catch in your extensions. You can use the getMessage method inherited from Throwable to obtain the client-side error code of this Exception. See the section on error codes at the end of the Client API chapter in the user manual for a list of possible error codes.

See Also:
Serialized Form

Constructor Summary
DbException(java.lang.String err)
          Creates a new DbException with the specified error code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbException

public DbException(java.lang.String err)
Creates a new DbException with the specified error code.