SecurityException class final

Exception thrown when a security policy is violated.

This occurs if a VPN is detected (and blockVpn is true) or if DNS hijacking is suspected.

Handling: Warn the user that their connection might be insecure or that they need to disable their VPN to continue.

Inheritance

Constructors

SecurityException(SecurityAlert reason, String message)
Creates a new SecurityException with the given reason and message.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description of the error.
finalinherited
reason SecurityAlert
The specific security reason why this exception was thrown.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited