ErrorResponseException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The ErrorResponseException() constructor creates an instance of the ErrorResponseException class.
Overloads
ErrorResponseException()
The ErrorResponseException() constructor creates an instance of the ErrorResponseException class.
public:
ErrorResponseException();
public ErrorResponseException ();
Public Sub New ()
Applies to
ErrorResponseException(DsmlErrorResponse)
The ErrorResponseException(DsmlErrorResponse) constructor creates an instance of the ErrorResponseException class using the specified response object. 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)
Parameters
- response
- DsmlErrorResponse
The DsmlErrorResponse object returned by the server that corresponds to the <errorResponse>
.
Applies to
ErrorResponseException(String)
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)
Parameters
- message
- String
The message displayed to the client when the exception occurs.
Applies to
ErrorResponseException(DsmlErrorResponse, String)
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)
Parameters
- response
- DsmlErrorResponse
The DsmlErrorResponse object returned by the server that corresponds to the <errorResponse>
.
- message
- String
The message displayed to the client when the exception occurs.
Applies to
ErrorResponseException(SerializationInfo, StreamingContext)
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)
Parameters
- info
- SerializationInfo
Data required to serialize the parameter.
- context
- StreamingContext
The source and destination of the serialized stream associated with the parameter.
Applies to
ErrorResponseException(String, Exception)
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)
Parameters
- message
- String
The message displayed to the client when the exception occurs.
- inner
- Exception
The InnerException, if any, that threw the exception.
Applies to
ErrorResponseException(DsmlErrorResponse, String, Exception)
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)
Parameters
- response
- DsmlErrorResponse
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
The InnerException, if any, that threw the exception.