Package com.telenordigital.nbiot
Class ClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.telenordigital.nbiot.ClientException
-
- All Implemented Interfaces:
Serializable
public class ClientException extends Exception
Generic exception whenever something (tm) goes wrong.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientException(String errorMessage, int statusCode)Invalid response from server.ClientException(Throwable t)Wrap a source exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmessage()Error message from server (if applicable)intstatus()Status code from server (if applicable)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
status
public int status()
Status code from server (if applicable)
-
message
public String message()
Error message from server (if applicable)
-
-