edu.wpi.ebob.model
Class ObjectRemovalNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.wpi.ebob.model.ObjectRemovalNotSupportedException
- All Implemented Interfaces:
- java.io.Serializable
public class ObjectRemovalNotSupportedException
- extends java.lang.Exception
- Author:
- Liam Morley
- See Also:
- Serialized Form
Field Summary |
private java.util.Collection |
names
|
Method Summary |
java.util.Collection |
getNames()
Returns the names of the instances in the Object Bench that were unable
to be removed. |
private void |
init(java.lang.String name)
initializes the exception with the given name. |
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 |
names
private java.util.Collection names
ObjectRemovalNotSupportedException
public ObjectRemovalNotSupportedException(java.util.Collection names)
ObjectRemovalNotSupportedException
public ObjectRemovalNotSupportedException(java.lang.String name)
ObjectRemovalNotSupportedException
public ObjectRemovalNotSupportedException(java.lang.String name,
java.lang.Throwable cause)
ObjectRemovalNotSupportedException
public ObjectRemovalNotSupportedException(java.util.Collection names,
java.lang.Throwable cause)
- Parameters:
names
- cause
-
init
private void init(java.lang.String name)
- initializes the exception with the given name.
- Parameters:
name
- the name of the object that can't be removed.
getNames
public java.util.Collection getNames()
- Returns the names of the instances in the Object Bench that were unable
to be removed. This is designed to be expended just once, and as such
does not return an unmodifiable Collection.
- Returns:
- the Collection of names unable to be removed.