org.palo.api.persistence
Class PaloPersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.palo.api.persistence.PaloPersistenceException
All Implemented Interfaces:
java.io.Serializable

public class PaloPersistenceException
extends java.lang.Exception

PaloPersistenceException defines an exception which is thrown in case of problems during loading or saving of palo API persistence objects like CubeViews or Subsets. PersistenceErrors are used to provide additional information. Please use getErrors() to travers the list of nested errors.

Version:
$Id: PaloPersistenceException.html,v 1.15 2009/07/09 11:01:47 ArndHouben Exp $
See Also:
PersistenceError, Serialized Form

Field Summary
static int TYPE_LOAD_FAILED
           
static int TYPE_LOAD_INCOMPLETE
           
static int TYPE_SAVE_FAILED
           
static int TYPE_SAVE_INCOMPLETE
           
static int TYPE_UNDEFINED
           
 
Constructor Summary
PaloPersistenceException(PersistenceError[] errors)
          Default constructor
PaloPersistenceException(PersistenceError[] errors, java.lang.String msg)
           
 
Method Summary
 PersistenceError[] getErrors()
          Returns all registered errors or null
 int getType()
           
 void setType(int type)
           
 
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
 

Field Detail

TYPE_UNDEFINED

public static final int TYPE_UNDEFINED
See Also:
Constant Field Values

TYPE_LOAD_FAILED

public static final int TYPE_LOAD_FAILED
See Also:
Constant Field Values

TYPE_LOAD_INCOMPLETE

public static final int TYPE_LOAD_INCOMPLETE
See Also:
Constant Field Values

TYPE_SAVE_FAILED

public static final int TYPE_SAVE_FAILED
See Also:
Constant Field Values

TYPE_SAVE_INCOMPLETE

public static final int TYPE_SAVE_INCOMPLETE
See Also:
Constant Field Values
Constructor Detail

PaloPersistenceException

public PaloPersistenceException(PersistenceError[] errors)
Default constructor

Parameters:
errors - provide additional information about this exception

PaloPersistenceException

public PaloPersistenceException(PersistenceError[] errors,
                                java.lang.String msg)
Parameters:
errors - provide additional information about this exception
msg - a descriptive error message
Method Detail

getErrors

public PersistenceError[] getErrors()
Returns all registered errors or null

Returns:
registered errors or null

setType

public final void setType(int type)

getType

public final int getType()