ccc.api.exceptions
Class InvalidException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ccc.api.exceptions.CCException
                  extended by ccc.api.exceptions.InvalidException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CycleDetectedException, LockMismatchException, UnlockedException, WorkingCopyNotSupportedException

public class InvalidException
extends CCException

This request indicates that an API method was invoked with incorrect inputs.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Field Summary
static java.lang.String RESOLUTION
          RESOLUTION : String.
static java.lang.String RESOURCE
          RESOURCE : String.
 
Fields inherited from class ccc.api.exceptions.CCException
MESSAGE
 
Constructor Summary
InvalidException()
          Constructor.
InvalidException(java.lang.String message)
          Constructor.
InvalidException(java.lang.String message, java.util.Map<java.lang.String,java.lang.String> params)
          Constructor.
InvalidException(java.lang.String message, java.lang.Throwable cause)
          Constructor.
 
Method Summary
 java.util.UUID getResource()
          Accessor for the resource.
 void setResolution(java.lang.String resolution)
          Mutator for the resolution.
 
Methods inherited from class ccc.api.exceptions.CCException
addParam, getFailure, getMessage, getParam, setId, setParams
 
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
 

Field Detail

RESOURCE

public static final java.lang.String RESOURCE
RESOURCE : String.

See Also:
Constant Field Values

RESOLUTION

public static final java.lang.String RESOLUTION
RESOLUTION : String.

See Also:
Constant Field Values
Constructor Detail

InvalidException

public InvalidException()
Constructor.


InvalidException

public InvalidException(java.lang.String message)
Constructor.

Parameters:
message - Description of the exception.

InvalidException

public InvalidException(java.lang.String message,
                        java.lang.Throwable cause)
Constructor.

Parameters:
message - Description of the exception.
cause - The cause of this exception.

InvalidException

public InvalidException(java.lang.String message,
                        java.util.Map<java.lang.String,java.lang.String> params)
Constructor.

Parameters:
message - Description of the exception.
params - Further details describing the exception.
Method Detail

getResource

public java.util.UUID getResource()
Accessor for the resource.

Returns:
The resource.

setResolution

public void setResolution(java.lang.String resolution)
Mutator for the resolution.

Parameters:
resolution - The resolution for this exception.


Copyright © 2010. All Rights Reserved.