HandleErrorAttribute クラス

定義

アクション メソッドがスローした例外の処理に使用される属性を表します。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class HandleErrorAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IExceptionFilter
type HandleErrorAttribute = class
    inherit FilterAttribute
    interface IExceptionFilter
Public Class HandleErrorAttribute
Inherits FilterAttribute
Implements IExceptionFilter
継承
HandleErrorAttribute
属性
実装

コンストラクター

HandleErrorAttribute()

HandleErrorAttribute クラスの新しいインスタンスを初期化します。

プロパティ

AllowMultiple

フィルター属性の複数のインスタンスを指定できるかどうかを示す値を取得または設定します。

(継承元 FilterAttribute)
ExceptionType

例外の型を取得または設定します。

Master

例外情報を表示するマスター ビューを取得または設定します。

Order

アクション フィルターの実行順序を取得または設定します。

(継承元 FilterAttribute)
TypeId

この属性の一意の識別子を取得します。

View

例外情報を表示するページ ビューを取得または設定します。

メソッド

OnException(ExceptionContext)

例外が発生したときに呼び出されます。

適用対象