org.palo.api.impl
Class PersistenceErrorImpl

java.lang.Object
  extended by org.palo.api.impl.PersistenceErrorImpl
All Implemented Interfaces:
PersistenceError

public class PersistenceErrorImpl
extends java.lang.Object
implements PersistenceError

PersistenceErrorImpl TODO DOCUMENT ME

Version:
$Id: PersistenceErrorImpl.html,v 1.8 2009/07/09 11:01:47 ArndHouben Exp $

Field Summary
 
Fields inherited from interface org.palo.api.persistence.PersistenceError
ALL_ERROR_TYPES, LOADING_FAILED, TARGET_EXPANDED_PATH, TARGET_GENERAL, TARGET_HIDDEN_PATH, TARGET_SELECTED, TARGET_SUBSET, TARGET_UNKNOWN, UNKNOWN_AXIS, UNKNOWN_CUBE_VIEW, UNKNOWN_DIMENSION, UNKNOWN_ELEMENT, UNKNOWN_ERROR, UNKNOWN_PATH, UNKNOWN_SUBSET
 
Constructor Summary
PersistenceErrorImpl(java.lang.String msg, java.lang.String srcId, java.lang.Object src, java.lang.Object location, java.lang.String cause, int type, java.lang.Object section, int sectionType)
           
 
Method Summary
 java.lang.String getCause()
          Returns the cause of this error depending on the type of error.
 java.lang.Object getLocation()
          Returns the location where this error was initiated, e.g. if a dimension could not be found this will return its containing database
 java.lang.String getMessage()
          Returns the error message
 java.lang.Object getSection()
          Returns the section where the error occurs, e.g. if the error source is a CubeView the section could be an Axis.
 java.lang.Object getSource()
          Returns the source which causes this error, e.g. a CubeView or a Subset If no source was determined null is returned
 java.lang.String getSourceId()
          Returns the id of the source which causes this error, e.g. the id of a CubeView.
 int getTargetType()
          Returns one of the defined target constants which describes the target at which the error occurred, e.g. if the error is of type UNKNOWN_ELEMENT the target type could be a TARGET_EXPANDED_PATH meaning that the unknown element was detected at an expanded path.
 int getType()
          Returns one of the defined error constants to describe the kind of error
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceErrorImpl

public PersistenceErrorImpl(java.lang.String msg,
                            java.lang.String srcId,
                            java.lang.Object src,
                            java.lang.Object location,
                            java.lang.String cause,
                            int type,
                            java.lang.Object section,
                            int sectionType)
Method Detail

getSourceId

public final java.lang.String getSourceId()
Description copied from interface: PersistenceError
Returns the id of the source which causes this error, e.g. the id of a CubeView. Note that if getSource() returns null that does not automatically mean that this method returns null too!

Specified by:
getSourceId in interface PersistenceError
Returns:
the id of the error source instance or null

getCause

public final java.lang.String getCause()
Description copied from interface: PersistenceError
Returns the cause of this error depending on the type of error. E.g. if a dimension could not be found this method will return the dimension id.

Specified by:
getCause in interface PersistenceError
Returns:
the cause of this error or null if it could not be determined

getLocation

public final java.lang.Object getLocation()
Description copied from interface: PersistenceError
Returns the location where this error was initiated, e.g. if a dimension could not be found this will return its containing database

Specified by:
getLocation in interface PersistenceError
Returns:
the location where this error started or null if none could be determined

getMessage

public final java.lang.String getMessage()
Description copied from interface: PersistenceError
Returns the error message

Specified by:
getMessage in interface PersistenceError
Returns:
error message

getType

public final int getType()
Description copied from interface: PersistenceError
Returns one of the defined error constants to describe the kind of error

Specified by:
getType in interface PersistenceError
Returns:
one of the defined error constants

getSource

public final java.lang.Object getSource()
Description copied from interface: PersistenceError
Returns the source which causes this error, e.g. a CubeView or a Subset If no source was determined null is returned

Specified by:
getSource in interface PersistenceError
Returns:
the error source or null

getSection

public final java.lang.Object getSection()
Description copied from interface: PersistenceError
Returns the section where the error occurs, e.g. if the error source is a CubeView the section could be an Axis. If no section could be determined null is returned.

Specified by:
getSection in interface PersistenceError
Returns:
the error section or null

getTargetType

public int getTargetType()
Description copied from interface: PersistenceError
Returns one of the defined target constants which describes the target at which the error occurred, e.g. if the error is of type UNKNOWN_ELEMENT the target type could be a TARGET_EXPANDED_PATH meaning that the unknown element was detected at an expanded path.

Specified by:
getTargetType in interface PersistenceError
Returns:
defined target type constants