fr.paris.lutece.plugins.jcr.util
Class JcrException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fr.paris.lutece.plugins.jcr.util.JcrException
All Implemented Interfaces:
java.io.Serializable

public class JcrException
extends java.lang.RuntimeException

Customized exceptions for managing JSR170 exceptions Error codes are :

See Also:
Serialized Form

Field Summary
static int IO_EXCEPTION
           
static int NODE_LOCKED
           
static int PATH_NOT_FOUND_EXCEPTION
           
static int REPOSITORY_EXCEPTION
           
 
Constructor Summary
JcrException(int nCode)
           
JcrException(javax.jcr.RepositoryException e, int nCode)
           
 
Method Summary
 java.lang.String getLocalizedMessage()
           
 boolean isA(int nCode)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PATH_NOT_FOUND_EXCEPTION

public static final int PATH_NOT_FOUND_EXCEPTION
See Also:
Constant Field Values

REPOSITORY_EXCEPTION

public static final int REPOSITORY_EXCEPTION
See Also:
Constant Field Values

IO_EXCEPTION

public static final int IO_EXCEPTION
See Also:
Constant Field Values

NODE_LOCKED

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

JcrException

public JcrException(int nCode)
Parameters:
nCode - the type of the error

JcrException

public JcrException(javax.jcr.RepositoryException e,
                    int nCode)
Parameters:
e - the RepositoryException
nCode - the code
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

isA

public boolean isA(int nCode)
Parameters:
nCode - the code
Returns:
true if given code match the exception code


Copyright © 2008 Mairie de Paris. All Rights Reserved.