public class ShieldException
- Object
- Throwable
- Exception
- IOException
- 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.
Constructors
public ShieldException(ShieldStatus status, String message) |
Methods
public ShieldStatus getStatus() | Why the operation failed. |
Inherited methods
Constructor details
ShieldException
public ShieldException(ShieldStatus status, String message)Method details
getStatus
public ShieldStatus getStatus()Why the operation failed. Never null.