RuleException 생성자

정의

RuleException 클래스의 새 인스턴스를 초기화합니다.

오버로드

RuleException()

RuleException 클래스의 새 인스턴스를 초기화합니다.

RuleException(String)

지정된 오류 메시지를 사용하여 RuleException 클래스의 새 인스턴스를 초기화합니다.

RuleException(SerializationInfo, StreamingContext)

serialize된 데이터를 사용하여 RuleException 클래스의 새 인스턴스를 초기화합니다.

RuleException(String, Exception)

지정된 오류 메시지와 이 RuleException의 원인이 되는 내부 Exception에 대한 참조를 사용하여 Exception 클래스의 새 인스턴스를 초기화합니다.

RuleException()

RuleException 클래스의 새 인스턴스를 초기화합니다.

public:
 RuleException();
public RuleException ();
Public Sub New ()

설명

이 생성자는 새 인스턴스의 Message 속성을 현재 시스템 문화권에 기반하여 해당 오류를 설명하는 시스템 제공 메시지로 초기화합니다.

다음 표에는 RuleException의 인스턴스의 초기 속성 값이 나와 있습니다.

속성
InnerException null 참조(Visual Basic의 경우 Nothing)
Message 시스템이 제공하는 지역화된 설명입니다.

적용 대상

RuleException(String)

지정된 오류 메시지를 사용하여 RuleException 클래스의 새 인스턴스를 초기화합니다.

public:
 RuleException(System::String ^ message);
public RuleException (string message);
new System.Workflow.Activities.Rules.RuleException : string -> System.Workflow.Activities.Rules.RuleException
Public Sub New (message As String)

매개 변수

message
String

오류를 설명하는 메시지입니다.

설명

이 생성자는 Message 매개 변수를 사용하여 새 인스턴스의 message 속성을 초기화합니다.

다음 표에는 RuleException의 인스턴스의 초기 속성 값이 나와 있습니다.

속성
InnerException null 참조(Visual Basic의 경우 Nothing)
Message 오류 메시지 문자열입니다.

적용 대상

RuleException(SerializationInfo, StreamingContext)

serialize된 데이터를 사용하여 RuleException 클래스의 새 인스턴스를 초기화합니다.

protected:
 RuleException(System::Runtime::Serialization::SerializationInfo ^ serializeInfo, System::Runtime::Serialization::StreamingContext context);
protected RuleException (System.Runtime.Serialization.SerializationInfo serializeInfo, System.Runtime.Serialization.StreamingContext context);
new System.Workflow.Activities.Rules.RuleException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Workflow.Activities.Rules.RuleException
Protected Sub New (serializeInfo As SerializationInfo, context As StreamingContext)

매개 변수

serializeInfo
SerializationInfo

throw되는 예외에 대해 serialize된 개체 데이터를 보유하는 SerializationInfo입니다.

context
StreamingContext

소스 또는 대상에 대한 컨텍스트 정보를 포함하는 StreamingContext입니다.

설명

deserialization을 수행하는 동안 이 생성자를 호출하여 스트림을 통해 전송될 예외 개체를 다시 구성합니다.

적용 대상

RuleException(String, Exception)

지정된 오류 메시지와 이 RuleException의 원인이 되는 내부 Exception에 대한 참조를 사용하여 Exception 클래스의 새 인스턴스를 초기화합니다.

public:
 RuleException(System::String ^ message, Exception ^ ex);
public RuleException (string message, Exception ex);
new System.Workflow.Activities.Rules.RuleException : string * Exception -> System.Workflow.Activities.Rules.RuleException
Public Sub New (message As String, ex As Exception)

매개 변수

message
String

오류를 설명하는 메시지입니다.

ex
Exception

현재 Exception의 원인이 되는 Exception입니다. innerException 매개 변수가 null 참조(Visual Basic의 경우 Nothing)가 아닌 경우에는 현재 Exception이 내부 Exception을 처리하는 catch 블록에서 발생합니다.

설명

이전 Exception의 직접적인 결과로 throw되는 ExceptionInnerException 속성에는 이전 예외에 대한 참조가 들어 있어야 합니다. InnerException 속성은 생성자로 전달된 값과 같은 값을 반환하거나 Nothing 속성에서 생성자에 내부 InnerException 값을 제공하지 않는 경우에는 null 참조(Exception)를 반환합니다.

다음 표에는 RuleException의 인스턴스의 초기 속성 값이 나와 있습니다.

속성
InnerException 내부 Exception 참조입니다.
Message 오류 메시지 문자열입니다.

적용 대상