Package dev.evercatch

Class EvercatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.evercatch.EvercatchException
All Implemented Interfaces:
Serializable

public class EvercatchException extends Exception
Exception thrown when Evercatch API operations fail.

Wraps both HTTP-level errors (non-2xx responses) and network-level I/O errors so callers only need to handle a single checked exception type.

See Also:
  • Constructor Details

    • EvercatchException

      public EvercatchException(String message)
    • EvercatchException

      public EvercatchException(String message, int statusCode)
    • EvercatchException

      public EvercatchException(String message, Throwable cause)
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Returns the HTTP status code that triggered this exception, or -1 if the failure was not caused by an HTTP response (e.g. a network error).