Class ErrorResponse
java.lang.Object
com.sportradar.mbs.sdk.entities.response.ContentResponse
com.sportradar.mbs.sdk.entities.response.ErrorResponse
Represents an error response from the server.
Inherits from the ContentResponse class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class for ErrorResponse. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the error code.Gets the error message.static ErrorResponse.Builder
Creates a new instance of ErrorResponse.Builder.void
setErrorCode
(int value) Sets the error code.void
setErrorMessage
(String value) Sets the error message.Methods inherited from class com.sportradar.mbs.sdk.entities.response.ContentResponse
newBalanceChangeInformResponseBuilder, newCancelAckResponseBuilder, newCancelResponseBuilder, newCashoutAckResponseBuilder, newCashoutResponseBuilder, newCasinoSessionsResponseBuilder, newDepositInformResponseBuilder, newErrorResponseBuilder, newExtSettlementAckResponseBuilder, newExtSettlementResponseBuilder, newTicketAckResponseBuilder, newTicketInformResponseBuilder, newTicketResponseBuilder, newWithdrawalInformResponseBuilder
-
Constructor Details
-
ErrorResponse
public ErrorResponse()
-
-
Method Details
-
newBuilder
Creates a new instance of ErrorResponse.Builder.- Returns:
- A new instance of ErrorResponse.Builder.
-
getErrorMessage
Gets the error message.- Returns:
- The error message.
-
setErrorMessage
Sets the error message.- Parameters:
value
- The error message to set.
-
getErrorCode
public int getErrorCode()Gets the error code.- Returns:
- The error code.
-
setErrorCode
public void setErrorCode(int value) Sets the error code.- Parameters:
value
- The error code to set.
-