Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ultikits.ultitools.config.convert.ConversionException
- All Implemented Interfaces:
Serializable
Checked conversion failure carrying the file, whole key path, and declared Java type.
- Since:
- 6.3.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfile()path()reason()The reason exactly as the converter gave it, without the location prefix ofThrowable.getMessage().Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
file
-
path
-
declaredType
-
reason
-
-
Constructor Details
-
ConversionException
Creates a conversion failure at the given location.- Parameters:
message- the reasonfile- the module-relative filepath- the whole key segmentsdeclaredType- the declared Java type
-
ConversionException
public ConversionException(String message, String file, List<String> path, Type declaredType, Throwable cause) Creates a conversion failure with its underlying cause.- Parameters:
message- the reasonfile- the module-relative filepath- the whole key segmentsdeclaredType- the declared Java typecause- the underlying failure
-
-
Method Details
-
file
- Returns:
- the configuration file
-
path
- Returns:
- the immutable whole key path
-
declaredType
- Returns:
- the declared Java type
-
reason
The reason exactly as the converter gave it, without the location prefix ofThrowable.getMessage(). The framework shows it in the operator's skip warning (#590).- Returns:
- the reason, or
nullwhen none was given
-