Class ShieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.security.shield.ShieldException
Raised when a shield operation cannot produce a usable token, or when a request to a protected host is refused because its certificate chain matched no configured pin.
Extends IOException so it flows through the normal ConnectionRequest error path rather than
needing its own handling. Always check getStatus() before deciding what to show the user:
ShieldStatus.isTransient() distinguishes "could not reach the service" from "this device was
rejected", and those deserve very different UX.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ShieldException
-
-
Method Details
-
getStatus
Why the operation failed. Never null.
-