org.cyclopsgroup.doorman.service.dao
Class DataOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.cyclopsgroup.doorman.service.dao.DataOperationException
All Implemented Interfaces:
Serializable

public class DataOperationException
extends RuntimeException

An runtime exception that indicates operation fails for known reason and expected result should be returned

Author:
Jiaqi Guo
See Also:
Serialized Form

Constructor Summary
DataOperationException(org.cyclopsgroup.doorman.api.UserOperationResult result, String message)
           
 
Method Summary
 org.cyclopsgroup.doorman.api.UserOperationResult getOperationResult()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

DataOperationException

public DataOperationException(org.cyclopsgroup.doorman.api.UserOperationResult result,
                              String message)
Parameters:
result - Result expected to return
message - Verbol description of exception
Method Detail

getOperationResult

public final org.cyclopsgroup.doorman.api.UserOperationResult getOperationResult()
Returns:
The expected result that should be returned


Copyright © 2010-2012. All Rights Reserved.