saker.build Documentation TaskDoc JavaDoc Packages
public class ConversionFailedException extends RuntimeException
Thrown when a conversion from one type to another fails.
Constructors
public
Creates a new instance with the object to convert, and the conversion target type.
public
Constructs a new runtime exception with the specified detail message.
public
ConversionFailedException(String message, Object value, Type targettype)
Creates a new instance with a message, the object to convert, and the conversion target type.
public
Constructs a new runtime exception with the specified detail message and cause.
public
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
public ConversionFailedException(Object value, Type targettype)
Creates a new instance with the object to convert, and the conversion target type.

A message describing the values, target type, and the classloaders of them will be generated.

valueThe object to convert.
targettypeThe target type of the conversion.
Documentation included from: RuntimeException
Constructs a new runtime exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(Throwable).
messagethe detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
public ConversionFailedException(String message, Object value, Type targettype)
Creates a new instance with a message, the object to convert, and the conversion target type.

A message describing the values, target type, and the classloaders of them will be added to the argument message.

messageThe message to add to the exception.
valueThe object to convert.
targettypeThe target type of the conversion.
Documentation included from: RuntimeException
Constructs a new runtime exception with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

messagethe detail message (which is saved for later retrieval by the Throwable.getMessage() method).
causethe cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
1.4
Documentation included from: RuntimeException
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.
causethe cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
1.4