Package dev.evercatch
Class EvercatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.evercatch.EvercatchException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionEvercatchException(String message) EvercatchException(String message, int statusCode) EvercatchException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the HTTP status code that triggered this exception, or-1if the failure was not caused by an HTTP response (e.g.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EvercatchException
-
EvercatchException
-
EvercatchException
-
-
Method Details
-
getStatusCode
public int getStatusCode()Returns the HTTP status code that triggered this exception, or-1if the failure was not caused by an HTTP response (e.g. a network error).
-