ORCentral

src/eu/coform/database/DBException.java

Go to the documentation of this file.
00001 package eu.coform.database;
00002 
00006 public class DBException extends Exception {
00007 
00008    private static final long serialVersionUID = 1L;
00009    
00013    public enum Error {
00014       // General
00015       ObjectNotFound,
00016       QueryInvalid,
00017       ObjectInvalid
00018    }
00019 
00020    private Error m_error;
00025    public DBException(Error error) {
00026       super();
00027       m_error = error;
00028    }
00033    public Error error() {
00034       return m_error;
00035    }
00036 
00037 }
 All Classes Namespaces Files Functions Variables Enumerations