org.biomoby.shared
Class NoSuccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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/reasonculprit
- an object who was not found, who failed to do something, etc.
getCulprit
public Object getCulprit()
- Retrieve the culprit.
- Returns:
- an object representing the cause of the failure
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010