|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
umontreal.iro.lecuyer.util.UnsupportedConversionException
public class UnsupportedConversionException
Exception occurring when a conversion is not supported by a method of
StringConvert
. This exception is thrown when a conversion method is
given a target class it does not support. This differs from the case where
the target class is supported while the conversion fails.
Constructor Summary | |
---|---|
UnsupportedConversionException()
Constructs a new unsupported conversion exception with no target class or message. |
|
UnsupportedConversionException(Class<?> cls,
String val)
Constructs a new unsupported conversion exception with target class cls, converted value val and no message. |
|
UnsupportedConversionException(Class<?> cls,
String val,
String message)
Constructs a new unsupported conversion exception with target class cls, converted value val and message message. |
|
UnsupportedConversionException(String message)
Constructs a new unsupported conversion exception with no target class and message message. |
Method Summary | |
---|---|
Class<?> |
getTargetClass()
Returns the target class of the conversion causing the exception. |
String |
getValue()
Returns the value to be converted and causing the exception. |
String |
toString()
Returns a short description of the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnsupportedConversionException()
public UnsupportedConversionException(String message)
message
- the message describing the exception.public UnsupportedConversionException(Class<?> cls, String val)
cls
- the target class.val
- the value being converted.public UnsupportedConversionException(Class<?> cls, String val, String message)
cls
- the target class.val
- the value being converted.message
- the message describing the exception.Method Detail |
---|
public Class<?> getTargetClass()
public String getValue()
public String toString()
getValue()
returns a non-null value, the returned value
followed by a space
toString
in class Throwable
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |