Package com.caplin.jtm.exceptions
Class DataCachePutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.caplin.jtm.exceptions.TransformerException
-
- com.caplin.jtm.exceptions.DataCachePutException
-
- All Implemented Interfaces:
java.io.Serializable
public class DataCachePutException extends TransformerException
Thrown when an attempt to put an object into the Transformer fails.
- See Also:
DataCache.put(java.lang.String)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataCachePutException(java.lang.String message, int errorCode)
Constructs the DataCachePutException with the specified message and error code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
Gets the error code that the Transformer returned to indicate what the problem was.java.lang.String
toString()
Returns a string that describes the exception, including the message that details what happened and the error code.
-
-
-
Constructor Detail
-
DataCachePutException
public DataCachePutException(java.lang.String message, int errorCode)
Constructs the DataCachePutException with the specified message and error code.
- Parameters:
message
- A description of what caused the exception.errorCode
- The error code returned from the Transformer.
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Gets the error code that the Transformer returned to indicate what the problem was.
If the error code is -1, then the attempt to Put the object into the Transformer failed.
Any other error codes are unexpected.
- Returns:
- The value of the error code.
-
toString
public java.lang.String toString()
Returns a string that describes the exception, including the message that details what happened and the error code.
- Overrides:
toString
in classjava.lang.Throwable
- Returns:
- A string that represents the DataCachePutException.
-
-