Class ShieldBreakAPI.ApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.sbmc.freezy.shieldbreakapi.ShieldBreakAPI.ApiException
All Implemented Interfaces:
Serializable
Enclosing class:
ShieldBreakAPI

public static class ShieldBreakAPI.ApiException extends RuntimeException
Exception thrown when the API returns an error.
See Also:
  • Constructor Details

    • ApiException

      public ApiException(int statusCode, String message)
      Constructs an ApiException.
      Parameters:
      statusCode - the HTTP status code
      message - the error message
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Returns:
      the HTTP status code