Class ScriptingErrorUtils
java.lang.Object
com.flowable.platform.engine.impl.scripting.ScriptingErrorUtils
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
throwForbidden
(String message) Throws a forbidden exception with the given message.void
throwIllegalArgument
(String message) Throws an illegal argument exception with the given message.void
throwNotFound
(String message) Throws a not found exception with the given message.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ScriptingErrorUtils
public ScriptingErrorUtils()
-
-
Method Details
-
throwForbidden
Throws a forbidden exception with the given message. This will be mapped to a 403 HTTP status code.- Parameters:
message
- the message to display
-
throwIllegalArgument
Throws an illegal argument exception with the given message. This will be mapped to a 400 HTTP status code.- Parameters:
message
- the message to display
-
throwNotFound
Throws a not found exception with the given message. This will be mapped to a 404 HTTP status code.- Parameters:
message
- the message to display
-