ccc.client.core
Class RemoteException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ccc.client.core.RemoteException
All Implemented Interfaces:
java.io.Serializable

public class RemoteException
extends java.lang.Exception

An exception class representing a remote failure.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
RemoteException(Failure failure)
          Constructor.
 
Method Summary
 java.lang.String getCode()
          Get the code for the exception.
 java.lang.String getMessage()
          
 java.lang.String getParam(java.lang.String key)
          Get the parameter with the specified key.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteException

public RemoteException(Failure failure)
Constructor.

Parameters:
failure - The remote failure.
Method Detail

getMessage

public java.lang.String getMessage()

Overrides:
getMessage in class java.lang.Throwable

getCode

public java.lang.String getCode()
Get the code for the exception.

Returns:
The failure code.

getParam

public java.lang.String getParam(java.lang.String key)
Get the parameter with the specified key.

Parameters:
key - The key for the parameter.
Returns:
The parameter's value, as a string.


Copyright © 2010. All Rights Reserved.