ErrorResponseException 构造函数
定义
ErrorResponseException() 构造函数创建 ErrorResponseException 类的实例。The ErrorResponseException() constructor creates an instance of the ErrorResponseException class.
重载
ErrorResponseException()
ErrorResponseException() 构造函数创建 ErrorResponseException 类的实例。The ErrorResponseException() constructor creates an instance of the ErrorResponseException class.
public:
ErrorResponseException();
public ErrorResponseException ();
Public Sub New ()
适用于
ErrorResponseException(DsmlErrorResponse)
ErrorResponseException(DsmlErrorResponse) 构造函数使用指定的响应对象创建 ErrorResponseException 类的实例。The ErrorResponseException(DsmlErrorResponse) constructor creates an instance of the ErrorResponseException class using the specified response object. 向客户端显示的默认消息为“返回 <errorResponse>”。The default message displayed to the client is "<errorResponse> returned".
public:
ErrorResponseException(System::DirectoryServices::Protocols::DsmlErrorResponse ^ response);
public ErrorResponseException (System.DirectoryServices.Protocols.DsmlErrorResponse response);
new System.DirectoryServices.Protocols.ErrorResponseException : System.DirectoryServices.Protocols.DsmlErrorResponse -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (response As DsmlErrorResponse)
参数
- response
- DsmlErrorResponse
服务器返回的 DsmlErrorResponse 对象,该对象与 <errorResponse> 相对应。The DsmlErrorResponse object returned by the server that corresponds to the <errorResponse>.
适用于
ErrorResponseException(String)
ErrorResponseException(String) 构造函数使用指定的消息创建 ErrorResponseException 类的实例。The ErrorResponseException(String) constructor creates an instance of the ErrorResponseException class using the specified message.
public:
ErrorResponseException(System::String ^ message);
public ErrorResponseException (string message);
new System.DirectoryServices.Protocols.ErrorResponseException : string -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (message As String)
参数
- message
- String
出现异常时显示到客户端的消息。The message displayed to the client when the exception occurs.
适用于
ErrorResponseException(DsmlErrorResponse, String)
ErrorResponseException(DsmlErrorResponse, String) 构造函数使用指定的响应对象和消息创建 ErrorResponseException 类的实例。The ErrorResponseException(DsmlErrorResponse, String) constructor creates an instance of the ErrorResponseException class using the specified response object and message.
public:
ErrorResponseException(System::DirectoryServices::Protocols::DsmlErrorResponse ^ response, System::String ^ message);
public ErrorResponseException (System.DirectoryServices.Protocols.DsmlErrorResponse response, string message);
new System.DirectoryServices.Protocols.ErrorResponseException : System.DirectoryServices.Protocols.DsmlErrorResponse * string -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (response As DsmlErrorResponse, message As String)
参数
- response
- DsmlErrorResponse
服务器返回的 DsmlErrorResponse 对象,该对象与 <errorResponse> 相对应。The DsmlErrorResponse object returned by the server that corresponds to the <errorResponse>.
- message
- String
出现异常时显示到客户端的消息。The message displayed to the client when the exception occurs.
适用于
ErrorResponseException(SerializationInfo, StreamingContext)
ErrorResponseException(SerializationInfo, StreamingContext) 构造函数使用指定的序列化数据和流上下文创建 ErrorResponseException 类的实例。The ErrorResponseException(SerializationInfo, StreamingContext) constructor creates an instance of the ErrorResponseException class using the specified serialization data and streaming context.
protected:
ErrorResponseException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ErrorResponseException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.Protocols.ErrorResponseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.ErrorResponseException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
序列化参数所需的数据。Data required to serialize the parameter.
- context
- StreamingContext
与该参数相关联的序列化流的源和目标。The source and destination of the serialized stream associated with the parameter.
适用于
ErrorResponseException(String, Exception)
ErrorResponseException(String, Exception) 构造函数使用指定的消息和内部异常创建 ErrorResponseException 类的实例。The ErrorResponseException(String, Exception) constructor creates an instance of the ErrorResponseException class using the specified message and inner exception.
public:
ErrorResponseException(System::String ^ message, Exception ^ inner);
public ErrorResponseException (string message, Exception inner);
new System.DirectoryServices.Protocols.ErrorResponseException : string * Exception -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (message As String, inner As Exception)
参数
- message
- String
出现异常时显示到客户端的消息。The message displayed to the client when the exception occurs.
- inner
- Exception
引发异常的 InnerException(如果有)。The InnerException, if any, that threw the exception.
适用于
ErrorResponseException(DsmlErrorResponse, String, Exception)
ErrorResponseException(DsmlErrorResponse, String, Exception) 构造函数使用指定的响应对象、消息和内部异常创建 ErrorResponseException 类的实例。The ErrorResponseException(DsmlErrorResponse, String, Exception) constructor creates an instance of the ErrorResponseException class using the specified response object, message, and inner exception.
public:
ErrorResponseException(System::DirectoryServices::Protocols::DsmlErrorResponse ^ response, System::String ^ message, Exception ^ inner);
public ErrorResponseException (System.DirectoryServices.Protocols.DsmlErrorResponse response, string message, Exception inner);
new System.DirectoryServices.Protocols.ErrorResponseException : System.DirectoryServices.Protocols.DsmlErrorResponse * string * Exception -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (response As DsmlErrorResponse, message As String, inner As Exception)
参数
- response
- DsmlErrorResponse
服务器返回的 DsmlErrorResponse 对象,该对象与 <errorResponse> 相对应。The DsmlErrorResponse object returned by the server that corresponds to the <errorResponse>.
- message
- String
出现异常时显示到客户端的消息。The message displayed to the client when the exception occurs.
- inner
- Exception
引发异常的 InnerException(如果有)。The InnerException, if any, that threw the exception.