public class TVCException
extends java.lang.Exception
| Constructor and Description |
|---|
TVCException()
Default constructor.
|
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.String messageKey)
Create a new exception.
|
TVCException(java.lang.String message,
java.lang.String messageKey,
java.lang.Object[] messageArgs)
Create a new exception.
|
TVCException(java.lang.String message,
java.lang.Throwable rootCause)
Sets the error message and root exception.
|
TVCException(java.lang.String message,
java.lang.Throwable rootCause,
java.lang.String messageKey,
java.lang.Object[] messageArgs)
Create a new exception.
|
TVCException(java.lang.Throwable rootCause)
Constructor that sets the error message from that found in the provided
Exception.
|
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
getExceptionMessage(java.lang.Throwable 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()
Deprecated.
Use
Throwable.getCause() instead |
boolean |
hasCause()
Returns true if this exception was caused by another.The exception that
caused this can be retrieved by calling
Throwable.getCause(). |
boolean |
hasRoot()
Deprecated.
Use
hasCause() instead |
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.Throwable rootCause)
rootCause - the Exception that caused this.public TVCException(java.lang.String message,
java.lang.Throwable 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.Throwable 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 hasCause()
Throwable.getCause().@Deprecated public boolean hasRoot()
hasCause() insteadgetRoot().@Deprecated public java.lang.Exception getRoot()
Throwable.getCause() insteadhasRoot() returns false.public java.lang.String getMessageKey()
public java.lang.Object[] getMessageArgs()
protected static java.lang.String getExceptionMessage(java.lang.Throwable e)
e - The exception.Copyright ? Technia AB. All Rights Reserved.