Rio Project 4.2 API Documentation



org.rioproject.monitor
Class ProvisionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.rioproject.monitor.ProvisionException
All Implemented Interfaces:
Serializable

public class ProvisionException
extends Exception

Thrown when an unrecoverable exception happens trying to provision a service

Author:
Dennis Reedy
See Also:
Serialized Form

Constructor Summary
ProvisionException()
          Constructs a ProvisionException with no detail message.
ProvisionException(String s)
          Constructs a ProvisionException with the specified detail message
ProvisionException(String s, Throwable cause)
          Constructs a ProvisionException with the specified detail message and optional exception that was raised
ProvisionException(String s, Throwable cause, boolean unInstantiable)
          Constructs a ProvisionException with the specified detail message, optional exception that was raised
 
Method Summary
 boolean isUninstantiable()
          Returns whether the raised exception is in reference to a service that is not provisionable, due to such reasons as missing classes or resources
 void printStackTrace()
          Prints the stack backtrace.
 void printStackTrace(PrintStream ps)
          Prints the stack backtrace to the specified print stream.
 void printStackTrace(PrintWriter pw)
          Prints the stack backtrace to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProvisionException

public ProvisionException()
Constructs a ProvisionException with no detail message.


ProvisionException

public ProvisionException(String s)
Constructs a ProvisionException with the specified detail message

Parameters:
s - the detail message.

ProvisionException

public ProvisionException(String s,
                          Throwable cause)
Constructs a ProvisionException with the specified detail message and optional exception that was raised

Parameters:
s - the detail message
cause - the exception that was raised

ProvisionException

public ProvisionException(String s,
                          Throwable cause,
                          boolean unInstantiable)
Constructs a ProvisionException with the specified detail message, optional exception that was raised

Parameters:
s - The detail message
cause - The exception that was raised while provisioning
unInstantiable - - Whether the raised exception is in reference to a service that is not provisionable
Method Detail

isUninstantiable

public boolean isUninstantiable()
Returns whether the raised exception is in reference to a service that is not provisionable, due to such reasons as missing classes or resources

Returns:
True if the service is unprovisionable

printStackTrace

public void printStackTrace()
Prints the stack backtrace.

Overrides:
printStackTrace in class Throwable
See Also:
System.err

printStackTrace

public void printStackTrace(PrintStream ps)
Prints the stack backtrace to the specified print stream.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter pw)
Prints the stack backtrace to the specified print writer.

Overrides:
printStackTrace in class Throwable

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.