Share via


PexExceptionValidatorAttributeBase.IsStackTraceValid Method

Definition

Determines whether the stack trace of an exception is allowed.

protected:
 virtual bool IsStackTraceValid(Exception ^ ex, cli::array <Microsoft::ExtendedReflection::Metadata::MethodDefinition ^> ^ filteredStackTrace, Microsoft::ExtendedReflection::Utilities::ContractsMetadata::ContractFailureKind failureKind);
protected virtual bool IsStackTraceValid (Exception ex, Microsoft.ExtendedReflection.Metadata.MethodDefinition[] filteredStackTrace, Microsoft.ExtendedReflection.Utilities.ContractsMetadata.ContractFailureKind failureKind);
abstract member IsStackTraceValid : Exception * Microsoft.ExtendedReflection.Metadata.MethodDefinition[] * Microsoft.ExtendedReflection.Utilities.ContractsMetadata.ContractFailureKind -> bool
override this.IsStackTraceValid : Exception * Microsoft.ExtendedReflection.Metadata.MethodDefinition[] * Microsoft.ExtendedReflection.Utilities.ContractsMetadata.ContractFailureKind -> bool
Protected Overridable Function IsStackTraceValid (ex As Exception, filteredStackTrace As MethodDefinition(), failureKind As ContractsMetadata.ContractFailureKind) As Boolean

Parameters

ex
Exception

The exception.

filteredStackTrace
Microsoft.ExtendedReflection.Metadata.MethodDefinition[]

The filtered stack trace.

failureKind
Microsoft.ExtendedReflection.Utilities.ContractsMetadata.ContractFailureKind

Kind of the failure.

Returns

true if [is stack trace valid] [the specified ex]; otherwise, false.

Applies to