Class ErrorResponse

java.lang.Object
com.sportradar.mbs.sdk.entities.response.ContentResponse
com.sportradar.mbs.sdk.entities.response.ErrorResponse

public class ErrorResponse extends ContentResponse
Represents an error response from the server. Inherits from the ContentResponse class.
  • Constructor Details

    • ErrorResponse

      public ErrorResponse()
  • Method Details

    • newBuilder

      public static ErrorResponse.Builder newBuilder()
      Creates a new instance of ErrorResponse.Builder.
      Returns:
      A new instance of ErrorResponse.Builder.
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message.
      Returns:
      The error message.
    • setErrorMessage

      public void setErrorMessage(String value)
      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.