- java.lang.Object
-
- io.hotmoka.network.errors.ErrorModel
-
public class ErrorModel extends Object
The model of an exception thrown by a REST method.
-
-
Field Summary
Fields Modifier and Type Field Description StringexceptionClassNameThe fully-qualified name of the class of the exception.StringmessageThe message of the exception.
-
Constructor Summary
Constructors Constructor Description ErrorModel()ErrorModel(Exception e)Builds 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.
-
-
-
Constructor Detail
-
ErrorModel
public ErrorModel(String message, Class<? extends Exception> exceptionClass)
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
public ErrorModel(Exception e)
Builds the model of an exception thrown by a REST method.- Parameters:
e- the exception
-
-