- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.hotmoka.network.NetworkExceptionResponse
-
- All Implemented Interfaces:
Serializable
public class NetworkExceptionResponse extends RuntimeException
A network exception with its message and HTTP status.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ErrorModelerrorModel
-
Constructor Summary
Constructors Constructor Description NetworkExceptionResponse(String status, ErrorModel errorModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExceptionClassName()Returns the fully-qualified name of the class of the exception.StringgetMessage()Returns the message of the exception.StringgetStatus()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
errorModel
public final ErrorModel errorModel
-
-
Constructor Detail
-
NetworkExceptionResponse
public NetworkExceptionResponse(String status, ErrorModel errorModel)
-
-
Method Detail
-
getStatus
public String getStatus()
-
getMessage
public String getMessage()
Returns the message of the exception.- Overrides:
getMessagein classThrowable
-
getExceptionClassName
public String getExceptionClassName()
Returns the fully-qualified name of the class of the exception.
-
-