ccc.api.exceptions
Class ConflictException

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.ConflictException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ResourceExistsException

public abstract class ConflictException
extends CCException

An API call failed due to a conflict with the current state of the resource.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Field Summary
protected static java.lang.String RES_ID
          RES_ID : String.
protected static java.lang.String RES_NAME
          RES_NAME : String.
 
Fields inherited from class ccc.api.exceptions.CCException
MESSAGE
 
Constructor Summary
protected ConflictException()
          Constructor.
  ConflictException(java.lang.String message, java.util.Map<java.lang.String,java.lang.String> params)
          Constructor.
 
Method Summary
 java.util.UUID getResourceId()
          Accessor for the resource.
 java.lang.String getResourceName()
          Accessor for the resource.
 
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

RES_NAME

protected static final java.lang.String RES_NAME
RES_NAME : String.

See Also:
Constant Field Values

RES_ID

protected static final java.lang.String RES_ID
RES_ID : String.

See Also:
Constant Field Values
Constructor Detail

ConflictException

protected ConflictException()
Constructor.


ConflictException

public ConflictException(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

getResourceId

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

Returns:
The resource.

getResourceName

public java.lang.String getResourceName()
Accessor for the resource.

Returns:
The resource.


Copyright © 2010. All Rights Reserved.