public class RepositoryException extends Exception
Modifier and Type | Field and Description |
---|---|
protected Throwable |
rootCause
Root failure cause
|
Constructor and Description |
---|
RepositoryException()
Constructs a new instance of this class with
null as its
detail message. |
RepositoryException(String message)
Constructs a new instance of this class with the specified detail
message.
|
RepositoryException(String message,
Throwable rootCause)
Constructs a new instance of this class with the specified detail
message and root cause.
|
RepositoryException(Throwable rootCause)
Constructs a new instance of this class with the specified root cause.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the cause of this exception or
null if the
cause is nonexistent or unknown. |
String |
getLocalizedMessage()
Returns the localized message, including the localized message from the
nested exception if there is one.
|
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(PrintStream s)
Prints this
RepositoryException and its backtrace to the
specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this
RepositoryException and its backtrace to
the specified print writer. |
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, setStackTrace, toString
protected Throwable rootCause
public RepositoryException()
null
as its
detail message.public RepositoryException(String message)
message
- the detail message. The detail message is saved for
later retrieval by the getMessage()
method.public RepositoryException(String message, Throwable rootCause)
message
- the detail message. The detail message is saved for
later retrieval by the getMessage()
method.rootCause
- root failure causepublic RepositoryException(Throwable rootCause)
rootCause
- root failure causepublic String getMessage()
getMessage
in class Throwable
null
).public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public Throwable getCause()
null
if the
cause is nonexistent or unknown. (The cause is the throwable that
caused this exception to get thrown.)public void printStackTrace()
RepositoryException
and its backtrace to the
standard error stream.printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
RepositoryException
and its backtrace to the
specified print stream.printStackTrace
in class Throwable
s
- PrintStream
to use for outputpublic void printStackTrace(PrintWriter s)
RepositoryException
and its backtrace to
the specified print writer.printStackTrace
in class Throwable
s
- PrintWriter
to use for outputCopyright © 2004–2013 Day Management AG. All rights reserved.