org.curjent.agent
Class AgentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.curjent.agent.AgentException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CallSiteNotFoundException, CapacityExceededException, ConfigLockedException, DeadlockException, ExpiredException

public class AgentException
extends RuntimeException

Generic agent exception and wrapper for undeclared checked exceptions. The agent implementation prefers standard Java exceptions where appropriate, such as NullPointerException and IllegalArgumentException. An AgentException is thrown when no other exception naturally fits. An agent will also wrap a checked exception in an AgentException when the checked exception is not explicitly declared by the agent's interface method; the checked exception is available as the cause.

See Also:
Throwable, Throwable.getCause(), Serialized Form

Field Summary
private static long serialVersionUID
          Java Object serialization id.
 
Constructor Summary
AgentException()
          Exception with a null message and cause.
AgentException(String message)
          Exception with a given message and a null cause.
AgentException(String message, Throwable cause)
          Exception with a given message and cause.
AgentException(Throwable cause)
          Exception with a null message and a given cause.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Java Object serialization id.

See Also:
Constant Field Values
Constructor Detail

AgentException

public AgentException()
Exception with a null message and cause.

See Also:
Throwable.Throwable()

AgentException

public AgentException(String message)
Exception with a given message and a null cause. The given message may be empty or null.

See Also:
Throwable.Throwable(String)

AgentException

public AgentException(Throwable cause)
Exception with a null message and a given cause. The given cause may be null.

See Also:
Throwable.Throwable(Throwable)

AgentException

public AgentException(String message,
                      Throwable cause)
Exception with a given message and cause. The given message may be empty or null, and the given cause may be null.

See Also:
Throwable.Throwable(String, Throwable)


Copyright 2009-2011 Tom Landon
Apache License 2.0