be.SIRAPRISE.client
Class DBException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by be.SIRAPRISE.client.DBException
All Implemented Interfaces:
java.io.Serializable

public class DBException
extends java.lang.Exception

A DBException is thrown by DBConnection's communication methods when the sira_prise server has reported any kind of error.

Author:
Erwin Smout
See Also:
Serialized Form

Method Summary
 long getErrorCode()
          Gets the error number.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getErrorCode

public long getErrorCode()
Gets the error number.

Returns:
The error number ; -1 if there is no meaningful information here (such as in the case of a contradiction exception, or a system runtime error)