org.ow2.jasmine.jadort.api
Class JadortServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ow2.jasmine.jadort.api.JadortServiceException
All Implemented Interfaces:
java.io.Serializable

public class JadortServiceException
extends java.lang.Exception

This class defines exceptions that are thrown by the JaDOrT service's business methods. All other exceptions that are thrown are from the EJB container or due to internal programming errors.

Author:
Malek Chahine, Remy Bresson, S. Ali Tokmen
See Also:
Serialized Form

Constructor Summary
JadortServiceException(OperationStateBean.Step currentStep, OperationStateBean.Step... expectedSteps)
          Exception thrown when the current operation is not in the expected step.
JadortServiceException(java.lang.String message, java.lang.Exception cause)
          Generic JaDOrT service exception.
 
Method Summary
 
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

JadortServiceException

public JadortServiceException(java.lang.String message,
                              java.lang.Exception cause)
Generic JaDOrT service exception.

Parameters:
message - Exception message.
cause - Exception's cause.

JadortServiceException

public JadortServiceException(OperationStateBean.Step currentStep,
                              OperationStateBean.Step... expectedSteps)
Exception thrown when the current operation is not in the expected step.

Parameters:
currentStep - The current step.
expectedSteps - The steps that are allowed.


Copyright © 2009 OW2 Consortium. All Rights Reserved.