public class ServerException
extends java.lang.Exception
Modifier | Constructor and Description |
---|---|
protected |
ServerException(int httpStatusCode,
int errorCode,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the error code sent by the server.
|
java.lang.String |
getErrorMessage()
Returns the error message sent by the server.
|
int |
getHttpStatusCode()
The http status code for the request.
|
java.lang.String |
toString()
Returns the entire error details sent by the server.
|
protected ServerException(int httpStatusCode, int errorCode, java.lang.String message)
public int getHttpStatusCode()
int
value.public int getErrorCode()
int
value.public java.lang.String getErrorMessage()
String
value.public java.lang.String toString()
toString
in class java.lang.Throwable
String
value.Copyright © 2023 AdventNet Inc. All Rights Reserved.