Class ConvertParameterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.restlet.ext.jaxrs.internal.exceptions.JaxRsException
-
- org.restlet.ext.jaxrs.internal.exceptions.ConvertParameterException
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated public class ConvertParameterException extends JaxRsException
Deprecated.Will be removed in next minor release.Thrown if a value for an instance field or a parameter for a constructor, a resource method or a bean setter could not be instantiated.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateConvertParameterException(java.lang.String message)Deprecated.privateConvertParameterException(java.lang.String message, java.lang.Throwable cause)Deprecated.privateConvertParameterException(java.lang.Throwable cause)Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ConvertParameterExceptionobject(java.lang.Class<?> paramType, java.lang.Object unparseableValue, java.lang.Throwable cause)Deprecated.Throws a message, that the given String value could not be converted to a primitive.static ConvertParameterExceptionprimitive(java.lang.Class<?> paramType, java.lang.String unparseableValue, java.lang.Throwable cause)Deprecated.Throws a message, that the given String value could not be converted to a primitive.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConvertParameterException
private ConvertParameterException(java.lang.String message)
Deprecated.- Parameters:
message-
-
ConvertParameterException
private ConvertParameterException(java.lang.String message, java.lang.Throwable cause)Deprecated.- Parameters:
message-cause-
-
ConvertParameterException
private ConvertParameterException(java.lang.Throwable cause)
Deprecated.- Parameters:
cause-
-
-
Method Detail
-
object
public static ConvertParameterException object(java.lang.Class<?> paramType, java.lang.Object unparseableValue, java.lang.Throwable cause) throws ConvertParameterException
Deprecated.Throws a message, that the given String value could not be converted to a primitive.- Parameters:
paramType-unparseableValue-cause-- Returns:
- (static the created ConvertParameterException for the compiler)
- Throws:
ConvertParameterException
-
primitive
public static ConvertParameterException primitive(java.lang.Class<?> paramType, java.lang.String unparseableValue, java.lang.Throwable cause) throws ConvertParameterException
Deprecated.Throws a message, that the given String value could not be converted to a primitive.- Parameters:
paramType-unparseableValue-cause-- Returns:
- (static the created ConvertParameterException for the compiler)
- Throws:
ConvertParameterException
-
-