Microsoft SDK for Java

getFailingMethodName

This method of the SecurityExceptionEx Class retrieves the name of a specific method, found on the call stack, that caused a security violation. Typically, a security violation occurs when the class associated with the method lacks the proper permissions to satisfy a permission-based security check using the PolicyEngine class.

Syntax

public String getFailingMethodName();

Return Value

Returns the name of the method that caused the security violation. This value might be null, depending on the context in which the SecurityExceptionEx is thrown.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.