Version: 1.1.1

org.biomoby.shared
Class NoSuccessException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.biomoby.shared.NoSuccessException
All Implemented Interfaces:
Serializable

public class NoSuccessException
extends Exception

A specific exception indicating that a request should not be fulfilled because something was not correctly specified, or was not found. The exception is raised if some "business logic" failed, but not because of a communiucation failure (that would be indicated by a more general MobyException).

Version:
$Id: NoSuccessException.java,v 1.3 2006/07/07 04:12:40 gordonp Exp $
Author:
Martin Senger
See Also:
Serialized Form

Constructor Summary
NoSuccessException()
           
NoSuccessException(String reason, Object culprit)
          A constructor specifying a reason and the potential culprit for this exception.
 
Method Summary
 Object getCulprit()
          Retrieve the culprit.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuccessException

public NoSuccessException()

NoSuccessException

public NoSuccessException(String reason,
                          Object culprit)
A constructor specifying a reason and the potential culprit for this exception.

Parameters:
reason - message/reason
culprit - an object who was not found, who failed to do something, etc.
Method Detail

getCulprit

public Object getCulprit()
Retrieve the culprit.

Returns:
an object representing the cause of the failure

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010