C# Class ReSharper.Exceptional.Models.ThrownExceptionModel

Inheritance: ModelBase
Mostra file Open project: CSharpAnalyzers/ExceptionalReSharper Class Usage Examples

Private Properties

Property Type Description
CheckAccessorOverride void
GetXmlDocId string
IsExceptionDocumentedInternal bool
IsParentAnonymousMethodExpression bool

Public Methods

Method Description
Accept ( AnalyzerBase analyzer ) : void

Runs the analyzer against all defined elements.

IsException ( ExceptionDocCommentModel exceptionDocumentation ) : bool

Checks whether the thrown exception is the same as exceptionDocumentation.

IsException ( IDeclaredType exceptionType ) : bool
IsExceptionOrSubtype ( ExceptionDocCommentModel exceptionDocumentation ) : bool
ThrownExceptionModel ( IAnalyzeUnit analyzeUnit, IExceptionsOriginModel exceptionsOrigin, IDeclaredType exceptionType, string exceptionDescription, bool isEventInvocationException, string exceptionAccessor ) : System

Private Methods

Method Description
CheckAccessorOverride ( IExceptionsOriginModel exceptionsOrigin, IDeclaredType exceptionType ) : void
GetXmlDocId ( ITreeNode node ) : string
IsExceptionDocumentedInternal ( bool>.Func check ) : bool
IsParentAnonymousMethodExpression ( ITreeNode parent ) : bool

Method Details

Accept() public method

Runs the analyzer against all defined elements.
public Accept ( AnalyzerBase analyzer ) : void
analyzer ReSharper.Exceptional.Analyzers.AnalyzerBase The analyzer.
return void

IsException() public method

Checks whether the thrown exception is the same as exceptionDocumentation.
public IsException ( ExceptionDocCommentModel exceptionDocumentation ) : bool
exceptionDocumentation ExceptionDocCommentModel
return bool

IsException() public method

public IsException ( IDeclaredType exceptionType ) : bool
exceptionType IDeclaredType
return bool

IsExceptionOrSubtype() public method

public IsExceptionOrSubtype ( ExceptionDocCommentModel exceptionDocumentation ) : bool
exceptionDocumentation ExceptionDocCommentModel
return bool

ThrownExceptionModel() public method

public ThrownExceptionModel ( IAnalyzeUnit analyzeUnit, IExceptionsOriginModel exceptionsOrigin, IDeclaredType exceptionType, string exceptionDescription, bool isEventInvocationException, string exceptionAccessor ) : System
analyzeUnit IAnalyzeUnit
exceptionsOrigin IExceptionsOriginModel
exceptionType IDeclaredType
exceptionDescription string
isEventInvocationException bool
exceptionAccessor string
return System