|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
BadPropertyException(String propertyName,
String propertyValue,
String desiredType)
Instantiate a new BadPropertyException. |
|
BadPropertyException(String propertyName,
String propertyValue,
String desiredType,
Throwable cause)
Instantiate a new BadPropertyException with the given underlying cause. |
|
| Method Summary | |
|---|---|
String |
getDesiredType()
Get the desired type as which the property could not be parsed. |
String |
getLocalizedMessage()
|
String |
getMessage()
|
String |
getPropertyName()
Get the name of the bad property. |
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 |
| Constructor Detail |
|---|
public BadPropertyException(String propertyName,
String propertyValue,
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(String propertyName,
String propertyValue,
String desiredType,
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 cause| Method Detail |
|---|
public String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getDesiredType()
public String getPropertyName()
public String getPropertyValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||