javax.jcr
Class RepositoryException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.jcr.RepositoryException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessDeniedException, ConstraintViolationException, InvalidItemStateException, InvalidQueryException, InvalidSerializedDataException, ItemExistsException, ItemNotFoundException, LockException, LoginException, MergeException, NamespaceException, NoSuchNodeTypeException, NoSuchWorkspaceException, PathNotFoundException, ReferentialIntegrityException, UnsupportedRepositoryOperationException, ValueFormatException, VersionException

public class RepositoryException
extends java.lang.Exception

Main exception thrown by classes in this package. May contain an error message and/or another nested exception.

See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable rootCause
          Root failure cause
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
RepositoryException()
          Constructs a new instance of this class with null as its detail message.
RepositoryException(java.lang.String message)
          Constructs a new instance of this class with the specified detail message.
RepositoryException(java.lang.String message, java.lang.Throwable rootCause)
          Constructs a new instance of this class with the specified detail message and root cause.
RepositoryException(java.lang.Throwable rootCause)
          Constructs a new instance of this class with the specified root cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this exception or null if the cause is nonexistent or unknown.
 java.lang.String getLocalizedMessage()
          Returns the localized message, including the localized message from the nested exception if there is one.
 java.lang.String getMessage()
          Returns the detail message, including the message from the nested exception if there is one.
 void printStackTrace()
          Prints this RepositoryException and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this RepositoryException and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this RepositoryException and its backtrace to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rootCause

protected java.lang.Throwable rootCause
Root failure cause

Constructor Detail

RepositoryException

public RepositoryException()
Constructs a new instance of this class with null as its detail message.


RepositoryException

public RepositoryException(java.lang.String message)
Constructs a new instance of this class with the specified detail message.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage() method.

RepositoryException

public RepositoryException(java.lang.String message,
                           java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified detail message and root cause.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage() method.
rootCause - root failure cause

RepositoryException

public RepositoryException(java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified root cause.

Parameters:
rootCause - root failure cause
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detail message, including the message from the nested exception if there is one.

Returns:
the detail message (which may be null).

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Returns the localized message, including the localized message from the nested exception if there is one.

Returns:
The localized description of this exception.

getCause

public java.lang.Throwable getCause()
Returns the cause of this exception or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this exception to get thrown.)

Returns:
the cause of this exception or null if the cause is nonexistent or unknown.

printStackTrace

public void printStackTrace()
Prints this RepositoryException and its backtrace to the standard error stream.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this RepositoryException and its backtrace to the specified print stream.

Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this RepositoryException and its backtrace to the specified print writer.

Parameters:
s - PrintWriter to use for output


Copyright © 2004-2005 Day Software Management AG. All Rights Reserved.