-
- All Implemented Interfaces:
-
java.io.Serializable
public class HCaptchaException extends Exception
A checked exception which contains an HCaptchaError id and message.
-
-
Field Summary
Fields Modifier and Type Field Description private final HCaptchaErrorhCaptchaErrorprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description HCaptchaException(HCaptchaError error)
-
Method Summary
Modifier and Type Method Description HCaptchaErrorgetHCaptchaError()StringgetMessage()intgetStatusCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HCaptchaException
HCaptchaException(HCaptchaError error)
-
-
Method Detail
-
getHCaptchaError
HCaptchaError getHCaptchaError()
-
getMessage
@Nullable() String getMessage()
-
getStatusCode
int getStatusCode()
-
-
-
-