Package ai.preferred.venom.fetcher
Class StopCodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ai.preferred.venom.fetcher.StopCodeException
-
- All Implemented Interfaces:
Serializable
public class StopCodeException extends Exception
- Author:
- Ween Jiann Lee
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StopCodeException(int statusCode, String message)
Constructs a stop code exception with a message.StopCodeException(int statusCode, String message, Throwable cause)
Constructs a stop code exception with a message and a cause.StopCodeException(int statusCode, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Constructs a stop code exception with a message and a cause.StopCodeException(int statusCode, Throwable cause)
Constructs a stop code exception with a cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
fillInStackTrace()
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
StopCodeException
public StopCodeException(int statusCode, String message)
Constructs a stop code exception with a message.- Parameters:
statusCode
- The status code received from the responsemessage
- A message about the exception
-
StopCodeException
public StopCodeException(int statusCode, String message, Throwable cause)
Constructs a stop code exception with a message and a cause.- Parameters:
statusCode
- The status code received from the responsemessage
- A message about the exceptioncause
- The cause of the exception
-
StopCodeException
public StopCodeException(int statusCode, Throwable cause)
Constructs a stop code exception with a cause.- Parameters:
statusCode
- The status code received from the responsecause
- The cause of the exception
-
StopCodeException
public StopCodeException(int statusCode, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Constructs a stop code exception with a message and a cause.- Parameters:
statusCode
- The status code received from the responsemessage
- A message about the exceptioncause
- The cause of the exceptionenableSuppression
- Enable suppression.writableStackTrace
- Enable writable stack trace.
-
-
Method Detail
-
fillInStackTrace
public final Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classThrowable
-
-