Package dalvik.system
Class BlockGuard.BlockGuardPolicyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dalvik.system.BlockGuard.BlockGuardPolicyException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BlockGuard
public static class BlockGuard.BlockGuardPolicyException extends RuntimeException
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BlockGuardPolicyException(int policyState, int policyViolated)BlockGuardPolicyException(int policyState, int policyViolated, String message) -
Method Summary
Modifier and Type Method Description StringgetMessage()Returns the detail message which was provided when thisThrowablewas created.intgetPolicy()intgetPolicyViolation()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BlockGuardPolicyException
public BlockGuardPolicyException(int policyState, int policyViolated) -
BlockGuardPolicyException
-
-
Method Details
-
getPolicy
public int getPolicy() -
getPolicyViolation
public int getPolicyViolation() -
getMessage
Description copied from class:ThrowableReturns the detail message which was provided when thisThrowablewas created. Returnsnullif no message was provided at creation time.- Overrides:
getMessagein classThrowable
-