All Packages Class Hierarchy This Package Previous Next Index
Class jtelos.AttributeNotFoundException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.lang.RuntimeException
|
+----jtelos.AttributeNotFoundException
- public class AttributeNotFoundException
- extends RuntimeException
Thrown when a search is performed on an individual's attributes and
there are no matches between the key parameters (which are category
labels and attribute labels) and the attributes in the individual
(whose name is passed in a parameter to construct the error
message). The attributes searched for include those declared,
inherited (or both) by the individual, depending on the situation.
There are several methods in the interface Individual
that throw this exception.
Note that since it is a RuntimeException
it doesn't
require a throws
clause in methods that throw it, nor
try/catch
statements around invocations of those
methods. Nonetheless, it should be handled.
- See Also:
- Attribute, Individual
-
AttributeNotFoundException(String, String, String)
- Thrown when there are no attribute found in the list.
-
AttributeNotFoundException(String[], String)
- Thrown when there are no attributes whose category labels match
all of the category labels passed.
-
AttributeNotFoundException(String[], String, String)
- Thrown when there are no attributes whose category labels match
all of the category labels and the attribute
label passed.
AttributeNotFoundException
public AttributeNotFoundException(String catLabels[],
String ownerName)
- Thrown when there are no attributes whose category labels match
all of the category labels passed. Returns message:
"Couldn't find attribute in categories that match labels:
<catLabels[0]
>, <catLabels[1]
>
< ... > in <ownerName
>".
AttributeNotFoundException
public AttributeNotFoundException(String catLabels[],
String attrLabel,
String ownerName)
- Thrown when there are no attributes whose category labels match
all of the category labels and the attribute
label passed. Returns message:
"Couldn't find attribute in categories that match labels:
<catLabels[0]
>, <catLabels[1]
>
< ... > matching label <attrLabel
> in
<ownerName
>".
AttributeNotFoundException
public AttributeNotFoundException(String attrName,
String listName,
String ownerName)
- Thrown when there are no attribute found in the list. Returns
message:
"Couldn't find attribute: <attrName
>
in <listName
> list in
<ownerName
>".
All Packages Class Hierarchy This Package Previous Next Index