com.filenet.download.api.exception
Class ClientDownloadRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.filenet.download.api.exception.ClientDownloadRuntimeException
-
- All Implemented Interfaces:
- java.io.Serializable
public class ClientDownloadRuntimeException extends java.lang.RuntimeExceptionUsed for all unchecked exceptions. The exceptions are defined asClientDownloadExceptionCodeobjects.ClientDownloadRuntimeExceptionsupports exception chaining (constructing a chain of exceptions by wrapping additional exceptions).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ClientDownloadRuntimeException()ClientDownloadRuntimeException(ClientDownloadExceptionCode code)Use this to specify only theClientDownloadExceptionCodeobject for this exception.ClientDownloadRuntimeException(ClientDownloadExceptionCode code, java.lang.Object codeArg0)Use this to specify theClientDownloadExceptionCodeobject and the specific value in use (code argument) when the error occurred for this exception.ClientDownloadRuntimeException(ClientDownloadExceptionCode code, java.lang.Object[] codeArgs)Use this to specify theClientDownloadExceptionCodeobject and an array of specific values (code arguments) in use when the error occurred for this exception.ClientDownloadRuntimeException(java.lang.Throwable cause, ClientDownloadExceptionCode code, java.lang.Object[] codeArgs)Use this for exception chaining.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ClientDownloadExceptionCodegetExceptionCode()Gets theClientDownloadExceptionCodeobject specified for this instance.java.lang.StringgetLocalizedMessage()Gets a localized version of the description string (using the default locale) specified in theClientDownloadExceptionCodeobject used for this instance.java.lang.StringgetMessage()Gets a localized version of the description string (using the default locale) specified in theClientDownloadExceptionCodeobject used for this instance.java.lang.StringtoString()Returns a description of this exception.
-
-
-
Constructor Detail
-
ClientDownloadRuntimeException
public ClientDownloadRuntimeException()
-
ClientDownloadRuntimeException
public ClientDownloadRuntimeException(ClientDownloadExceptionCode code, java.lang.Object[] codeArgs)
Use this to specify theClientDownloadExceptionCodeobject and an array of specific values (code arguments) in use when the error occurred for this exception.- Parameters:
code- TheClientDownloadExceptionCodeobject to use.codeArgs- AnObjectarray containing the code arguments. This can be null.
-
ClientDownloadRuntimeException
public ClientDownloadRuntimeException(ClientDownloadExceptionCode code)
Use this to specify only theClientDownloadExceptionCodeobject for this exception.- Parameters:
code- TheClientDownloadExceptionCodeobject to use.
-
ClientDownloadRuntimeException
public ClientDownloadRuntimeException(ClientDownloadExceptionCode code, java.lang.Object codeArg0)
Use this to specify theClientDownloadExceptionCodeobject and the specific value in use (code argument) when the error occurred for this exception.- Parameters:
code- TheClientDownloadExceptionCodeobject to use.codeArg0- AnObjectcontaining the code argument. This can be null.
-
ClientDownloadRuntimeException
public ClientDownloadRuntimeException(java.lang.Throwable cause, ClientDownloadExceptionCode code, java.lang.Object[] codeArgs)Use this for exception chaining. Include theClientDownloadExceptionCodeobject and an array of specific values (code arguments) in use when the error occurred for this (wrapping) exception. TheThrowableobject specified is wrapped (nested) within this exception.- Parameters:
cause- Ajava.lang.Throwableobject containing the exception to wrap.code- TheClientDownloadExceptionCodeobject to use.codeArgs- AnObjectarray containing the code arguments. This can be null.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Gets a localized version of the description string (using the default locale) specified in theClientDownloadExceptionCodeobject used for this instance. This method overridesjava.lang.Throwable.getMessage.- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- A String containing the localized exception description.
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
Gets a localized version of the description string (using the default locale) specified in theClientDownloadExceptionCodeobject used for this instance. This method overridesjava.lang.Throwable.getLocalizedMessage.- Overrides:
getLocalizedMessagein classjava.lang.Throwable- Returns:
- A String containing the localized exception description.
-
getExceptionCode
public ClientDownloadExceptionCode getExceptionCode()
Gets theClientDownloadExceptionCodeobject specified for this instance.- Returns:
- The
ClientDownloadExceptionCodeobject for this exception.
-
toString
public java.lang.String toString()
Returns a description of this exception. The result is the concatenation of the following:- The name of this exception's class
- The name of the exception code
- The localized error message
- The exception's error stack
- Overrides:
toStringin classjava.lang.Throwable- Returns:
- A
Stringrepresentation of this exception.
-
-