|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.jcr.RepositoryException
Main exception thrown by classes in this package. May contain an error message and/or another nested exception.
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 |
protected java.lang.Throwable rootCause
Constructor Detail |
public RepositoryException()
null
as its
detail message.
public RepositoryException(java.lang.String message)
message
- the detail message. The detail message is saved for
later retrieval by the getMessage()
method.public RepositoryException(java.lang.String message, java.lang.Throwable rootCause)
message
- the detail message. The detail message is saved for
later retrieval by the getMessage()
method.rootCause
- root failure causepublic RepositoryException(java.lang.Throwable rootCause)
rootCause
- root failure causeMethod Detail |
public java.lang.String getMessage()
null
).public java.lang.String getLocalizedMessage()
public java.lang.Throwable getCause()
null
if the
cause is nonexistent or unknown. (The cause is the throwable that
caused this exception to get thrown.)
null
if the
cause is nonexistent or unknown.public void printStackTrace()
RepositoryException
and its backtrace to the
standard error stream.
public void printStackTrace(java.io.PrintStream s)
RepositoryException
and its backtrace to the
specified print stream.
s
- PrintStream
to use for outputpublic void printStackTrace(java.io.PrintWriter s)
RepositoryException
and its backtrace to
the specified print writer.
s
- PrintWriter
to use for output
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |