java.lang.Object
io.hotmoka.network.errors.ErrorModel
The model of an exception thrown by a REST method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe fully-qualified name of the class of the exception.The message of the exception. -
Constructor Summary
ConstructorsConstructorDescriptionBuilds the model of an exception thrown by a REST method.ErrorModel(String message, Class<? extends Exception> exceptionClass) Builds the model of an exception thrown by a REST method. -
Method Summary
-
Field Details
-
message
The message of the exception. -
exceptionClassName
The fully-qualified name of the class of the exception.
-
-
Constructor Details
-
ErrorModel
Builds the model of an exception thrown by a REST method.- Parameters:
message- the message of the exceptionexceptionClass- the class of the exception
-
ErrorModel
public ErrorModel() -
ErrorModel
Builds the model of an exception thrown by a REST method.- Parameters:
e- the exception
-