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
All Methods Instance Methods Concrete Methods 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 Detail
-
BlockGuardPolicyException
public BlockGuardPolicyException(int policyState, int policyViolated)
-
BlockGuardPolicyException
public BlockGuardPolicyException(int policyState, int policyViolated, String message)
-
-
Method Detail
-
getPolicy
public int getPolicy()
-
getPolicyViolation
public int getPolicyViolation()
-
getMessage
public String 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
-
-