Class ServerErrorResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sportradar.mbs.sdk.exceptions.SdkException
com.sportradar.mbs.sdk.exceptions.ServerErrorResponseException
- All Implemented Interfaces:
Serializable
Represents an exception that occurs when a server responds with an error.
- See Also:
-
Constructor Summary
ConstructorDescriptionServerErrorResponseException
(int errorCode, String errorMessage) Constructs a new ServerErrorResponseException with the specified error code and error message. -
Method Summary
Methods inherited from class com.sportradar.mbs.sdk.exceptions.SdkException
getCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerErrorResponseException
Constructs a new ServerErrorResponseException with the specified error code and error message.- Parameters:
errorCode
- the error code returned by the servererrorMessage
- the error message returned by the server
-
-
Method Details
-
getErrorCode
public int getErrorCode()Gets the error code returned by the server.- Returns:
- the error code
-