|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jasig.portal.properties.MissingPropertyException
public class MissingPropertyException
An undeclared (Runtime) exception to be thrown by the PropertiesManager when a property is requested but cannot be found.
Field Summary | |
---|---|
private boolean |
alreadyReported
True if a prior MissingPropertyException has been thrown for this missing property by the throwing object if it keeps track. |
private java.lang.String |
propertyName
The name of the missing property. |
Constructor Summary | |
---|---|
MissingPropertyException(java.lang.String propertyName)
Instantiate a MissingPropertyException for a particular missing property. |
|
MissingPropertyException(java.lang.String propertyName,
boolean alreadyReported)
Instantiate a MissingPropertyException for a particular missing property, indicating whether the throwing object has already thrown a MissingPropertyException for this property. |
|
MissingPropertyException(java.lang.String propertyName,
boolean alreadyReported,
java.lang.Throwable cause)
Instantiate a MissingPropertyException for a particular missing property, indicating whether the throwing object has already thrown a MissingPropertyException for this property, and supplying an underlying cause. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
|
java.lang.String |
getPropertyName()
Get the name of the missing property. |
boolean |
isAlreadyReported()
Has the throwing object already reported (thrown a MissingPropertyException for) this particular missing property. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, 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 |
---|
private final java.lang.String propertyName
private final boolean alreadyReported
Constructor Detail |
---|
public MissingPropertyException(java.lang.String propertyName)
propertyName
- - the name of the property the value of which could not be found.public MissingPropertyException(java.lang.String propertyName, boolean alreadyReported)
propertyName
- name of missing propertyalreadyReported
- true if already reportedpublic MissingPropertyException(java.lang.String propertyName, boolean alreadyReported, java.lang.Throwable cause)
propertyName
- name of missing propertyalreadyReported
- true if already reportedcause
- underlying causeMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public boolean isAlreadyReported()
public java.lang.String getPropertyName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |