An exception that represents a situation when function received an argument that has a wrong value.
Type | Name and description |
---|---|
java.lang.String |
argument Name of the argument |
static java.lang.String |
emptyParamsMessage Message that will be shown if no parameters are supplied |
java.lang.String |
errorCode |
java.lang.String |
expected Expected type of the provided value |
java.lang.String |
function Function where argument with a wrong type was supplied |
java.lang.String |
got Actual type of the provided value |
Constructor and description |
---|
WrongFunctionArgumentValue
(java.lang.String message = emptyParamsMessage) Simple message constructor. |
WrongFunctionArgumentValue
(java.util.Map<java.lang.String, java.lang.String> params) Map constructor allows you to set different values for the message template. |
WrongFunctionArgumentValue
(java.lang.String argument, java.lang.String function, java.lang.String got = null, java.lang.String expected = null) Positional arguments constructor allows you to clarify the details. |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
render() Builds an exception message from the initial parameters. |
Methods inherited from class | Name |
---|---|
class FlowPDFException |
exceptionCode, getMessage, render |
class java.lang.RuntimeException |
java.lang.RuntimeException#printStackTrace(java.io.PrintStream), java.lang.RuntimeException#printStackTrace(), java.lang.RuntimeException#printStackTrace(java.io.PrintWriter), java.lang.RuntimeException#fillInStackTrace(), java.lang.RuntimeException#getCause(), java.lang.RuntimeException#initCause(java.lang.Throwable), java.lang.RuntimeException#toString(), java.lang.RuntimeException#getMessage(), java.lang.RuntimeException#getLocalizedMessage(), java.lang.RuntimeException#getStackTrace(), java.lang.RuntimeException#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.RuntimeException#addSuppressed(java.lang.Throwable), java.lang.RuntimeException#getSuppressed(), java.lang.RuntimeException#wait(long, int), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#wait(), java.lang.RuntimeException#equals(java.lang.Object), java.lang.RuntimeException#hashCode(), java.lang.RuntimeException#getClass(), java.lang.RuntimeException#notify(), java.lang.RuntimeException#notifyAll() |
Name of the argument
Message that will be shown if no parameters are supplied
Expected type of the provided value
Function where argument with a wrong type was supplied
Actual type of the provided value
Simple message constructor. You can use instead of template (Map or List) ones if you can supply more clarifying message or you don't have any details for exceptional situation.
message
- (optional) - Description of the exception, emptyParamsMessage will be used if empty.Map constructor allows you to set different values for the message template.
Positional arguments constructor allows you to clarify the details.
Groovy Documentation