|
||||||||||
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.BadPropertyException
public class BadPropertyException
This is an undeclared (Runtime) exception to be thrown by the PropertiesManager when a property is requested but cannot be parsed and returned as the desired type.
Field Summary | |
---|---|
private java.lang.String |
desiredType
The desired type, as which the property could not be parsed. |
private java.lang.String |
propertyName
The name of the property |
private java.lang.String |
propertyValue
The value of the property |
Constructor Summary | |
---|---|
BadPropertyException(java.lang.String propertyName,
java.lang.String propertyValue,
java.lang.String desiredType)
Instantiate a new BadPropertyException. |
|
BadPropertyException(java.lang.String propertyName,
java.lang.String propertyValue,
java.lang.String desiredType,
java.lang.Throwable cause)
Instantiate a new BadPropertyException with the given underlying cause. |
Method Summary | |
---|---|
java.lang.String |
getDesiredType()
Get the desired type as which the property could not be parsed. |
java.lang.String |
getLocalizedMessage()
|
java.lang.String |
getMessage()
|
java.lang.String |
getPropertyName()
Get the name of the bad property. |
java.lang.String |
getPropertyValue()
Get the actual value of the property. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, 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 java.lang.String propertyValue
private final java.lang.String desiredType
Constructor Detail |
---|
public BadPropertyException(java.lang.String propertyName, java.lang.String propertyValue, java.lang.String desiredType)
propertyName
- - the name of the propertypropertyValue
- - the bad value of the property.desiredType
- - the name of the desired type which the value wasn't, making it bad.public BadPropertyException(java.lang.String propertyName, java.lang.String propertyValue, java.lang.String desiredType, java.lang.Throwable cause)
propertyName
- - the name of the propertypropertyValue
- - the bad value of the property.desiredType
- - the name of the desired type which the value wasn't, making it bad.cause
- - underlying causeMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.String getDesiredType()
public java.lang.String getPropertyName()
public java.lang.String getPropertyValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |