CPASuppressErrorDirective (クラス)
public final CPASuppressErrorDirective {inherits SyntaxError}
パッケージ: CURL.IDE.CPA.ENVIRONMENT

A CPA error suppression directive.

説明

This is an error suppression directive in the form of a SyntaxError for use in CPAError.

These are not intended to be thrown, reported, printed or handled like regular syntax errors.

コンストラクタ
default:Initialize an error directive.
コンストラクタ public {CPASuppressErrorDirective.default
where:CPABaseSourceLocation,
suppress?:bool = true,
type:String
}

プロパティ
all?:Indicates all errors should be suppressed or unsuppressed.
フィールド public constant CPASuppressErrorDirective.all?:bool
error-type:The error type.
アクセサ public final CPASuppressErrorDirective.error-type:SyntaxErrorType
suppress-severity:The severity level to be suppressed or unsuppressed.
フィールド public constant CPASuppressErrorDirective.suppress-severity:CPASeverity
suppress?:Indicates whether to suppress or unsuppress a class of errors.
フィールド public constant CPASuppressErrorDirective.suppress?:bool
プロパティ 継承 SyntaxError: column, error-name, line, problem, url, where
プロパティ 継承 BasicThrowable: message, value

メソッド
メソッド 継承 SyntaxError: object-describe
メソッド 継承 Object: object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {CPASuppressErrorDirective.default
where:CPABaseSourceLocation,
suppress?:bool = true,
type:String
}

Initialize an error directive.

説明

Creates suppress/unsuppress directive associated with location specified by where. The type may either be "all", a CPASeverity name (i.e. "none", "info", "warning", "error"), or the error-name of the class of errors to be affected.

Specifying suppress? as true and type as "none" is equivalent to setting suppress? to false, and type to "all".



プロパティ詳細
all? (フィールド)
public constant CPASuppressErrorDirective.all?:bool

Indicates all errors should be suppressed or unsuppressed.



error-type (アクセサ)
アクセサ public final CPASuppressErrorDirective.error-type:SyntaxErrorType

The error type.

説明

This is always info.

The severity level being suppressed or unsuppressed is represented by suppress-severity


suppress-severity (フィールド)
public constant CPASuppressErrorDirective.suppress-severity:CPASeverity

The severity level to be suppressed or unsuppressed.

説明

If suppress? is true, then this specifies that errors with this severity or less should be suppressed.

If suppress? is false, then this unsuppresses errors down to that severity.


suppress? (フィールド)
public constant CPASuppressErrorDirective.suppress?:bool

Indicates whether to suppress or unsuppress a class of errors.






メソッド詳細