public class TVCException
extends java.lang.Exception
Constructor and Description |
---|
TVCException()
Default constructor.
|
TVCException(java.lang.Exception rootCause)
Constructor that sets the error message from that found in the provided
Exception.
|
TVCException(matrix.util.MatrixException rootCause)
Constructor that sets the error message from that found in the provided
MatrixException, unnecessary information from the error message
is stripped.
|
TVCException(matrix.db.MQLCommand cmd)
Constructor that sets the error message from that found in the provided
MQLCommand, unnecessary information from the error message is
stripped.
|
TVCException(java.lang.String message)
Constructor that sets the error message to the provided String.
|
TVCException(java.lang.String message,
java.lang.Exception rootCause)
Sets the error message and root exception.
|
TVCException(java.lang.String message,
java.lang.Exception rootCause,
java.lang.String messageKey,
java.lang.Object[] messageArgs)
Create a new exception.
|
TVCException(java.lang.String message,
java.lang.String messageKey)
Create a new exception.
|
TVCException(java.lang.String message,
java.lang.String messageKey,
java.lang.Object[] messageArgs)
Create a new exception.
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
getExceptionMessage(java.lang.Exception e)
Returns the exception message.
|
java.lang.Object[] |
getMessageArgs()
Returns the arguments that should be used when resolving the message key
into a message.
|
java.lang.String |
getMessageKey()
Returns the message key that will be resolved to a message.
|
java.lang.Exception |
getRoot()
Returns the exception that caused this.
|
boolean |
hasRoot()
Returns true if this exception was caused by another.
|
void |
printStackTrace()
Prints the stack trace.
|
void |
printStackTrace(java.io.PrintStream out)
Prints the stack trace.
|
void |
printStackTrace(java.io.PrintWriter out)
Prints the stack trace.
|
public TVCException(matrix.db.MQLCommand cmd)
cmd
- the MQLCommand that holds the error information.public TVCException(matrix.util.MatrixException rootCause)
rootCause
- the MatrixException that holds the error
information.public TVCException()
public TVCException(java.lang.String message)
message
- the error message.public TVCException(java.lang.Exception rootCause)
rootCause
- the Exception that caused this.public TVCException(java.lang.String message, java.lang.Exception rootCause)
public TVCException(java.lang.String message, java.lang.String messageKey)
message
- The message.messageKey
- The message key (for internationalized messages).public TVCException(java.lang.String message, java.lang.String messageKey, java.lang.Object[] messageArgs)
message
- The message.messageKey
- The message key (for internationalized messages).messageArgs
- The arguments used when resolving the message key into
a message.public TVCException(java.lang.String message, java.lang.Exception rootCause, java.lang.String messageKey, java.lang.Object[] messageArgs)
message
- The message.rootCause
- The root cause.messageKey
- The message key (for internationalized messages).messageArgs
- The arguments used when resolving the message key into
a message.public boolean hasRoot()
getRoot()
.public java.lang.Exception getRoot()
hasRoot()
returns false.public java.lang.String getMessageKey()
public java.lang.Object[] getMessageArgs()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter out)
printStackTrace
in class java.lang.Throwable
protected static java.lang.String getExceptionMessage(java.lang.Exception e)
e
- The exception.Copyright ? Technia AB. All Rights Reserved.