JanosVM v1.0 API

edu.utah.janosvm.resources
Class ResourceSpecException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--edu.utah.janosvm.resources.ResourceSpecException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DuplicateResourceSpecException

public class ResourceSpecException
extends java.lang.Exception

Exception indicating that the system couldn't satisfy a resource specification.

Author:
Tim Stack, Utah Janos Team
See Also:
Serialized Form

Field Summary
private  ResourceSpec unsatisfiedSpec
          The ResourceSpec that couldn't be satisfied.
 
Fields inherited from class java.lang.Throwable
backtrace, cause, message, serialVersionUID, setCause
 
Constructor Summary
ResourceSpecException()
          Construct an empty ResourceSpecException.
ResourceSpecException(ResourceSpec unsatisfiedSpec)
          Construct a ResourceSpecException with an unsatisfied ResourceSpec.
ResourceSpecException(java.lang.String msg)
          Construct a ResourceSpecException with a message.
 
Method Summary
 ResourceSpec getUnsatisfiedSpec()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, printStackTrace0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

unsatisfiedSpec

private ResourceSpec unsatisfiedSpec
The ResourceSpec that couldn't be satisfied.
Constructor Detail

ResourceSpecException

public ResourceSpecException()
Construct an empty ResourceSpecException.

ResourceSpecException

public ResourceSpecException(java.lang.String msg)
Construct a ResourceSpecException with a message.
Parameters:
msg - A description of the problem.

ResourceSpecException

public ResourceSpecException(ResourceSpec unsatisfiedSpec)
Construct a ResourceSpecException with an unsatisfied ResourceSpec.
Parameters:
unsatisfiedSpec - The ResourceSpec that couldn't be satisfied by the system.
Method Detail

getUnsatisfiedSpec

public ResourceSpec getUnsatisfiedSpec()
Returns:
The ResourceSpec that couldn't be satisfied by the system, or null if the resource was the default or internal.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003