Share via


PosControlException Constructors

Definition

Overloads

PosControlException()
PosControlException(String)
PosControlException(SerializationInfo, StreamingContext)

Creates an instance of the PosControlException class with serialized data.

PosControlException(String, ErrorCode)

Creates an instance of the PosControlException class with a specified error message and error code.

PosControlException(String, Exception)
PosControlException(String, ErrorCode, Exception)

Creates an instance of the PosControlException class with a specified error message, error code, and inner exception.

PosControlException(String, ErrorCode, Int32)

Creates an instance of the PosControlException class with a specified error message, error code, and extended error code value.

PosControlException(String, ErrorCode, Int32, Exception)

Creates an instance of the PosControlException class with a specified error message, error code, extended error code value, and the exception that is the cause of the current exception.

PosControlException()

public PosControlException ();
Public Sub New ()

Applies to

PosControlException(String)

public PosControlException (string message);
new Microsoft.PointOfService.PosControlException : string -> Microsoft.PointOfService.PosControlException
Public Sub New (message As String)

Parameters

message
String

Applies to

PosControlException(SerializationInfo, StreamingContext)

Creates an instance of the PosControlException class with serialized data.

protected PosControlException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new Microsoft.PointOfService.PosControlException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PointOfService.PosControlException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

The SerializationInfo object that holds the serialized object data about the exception being thrown.

streamingContext
StreamingContext

The StreamingContext object that contains contextual information about the source or destination.

Applies to

PosControlException(String, ErrorCode)

Creates an instance of the PosControlException class with a specified error message and error code.

public PosControlException (string message, Microsoft.PointOfService.ErrorCode errorCode);
new Microsoft.PointOfService.PosControlException : string * Microsoft.PointOfService.ErrorCode -> Microsoft.PointOfService.PosControlException
Public Sub New (message As String, errorCode As ErrorCode)

Parameters

message
String

A string that contains text that explains the reason for the exception.

errorCode
ErrorCode

An ErrorCode value that represents the error code for the exception.

Applies to

PosControlException(String, Exception)

public PosControlException (string message, Exception e);
new Microsoft.PointOfService.PosControlException : string * Exception -> Microsoft.PointOfService.PosControlException
Public Sub New (message As String, e As Exception)

Parameters

message
String

Applies to

PosControlException(String, ErrorCode, Exception)

Creates an instance of the PosControlException class with a specified error message, error code, and inner exception.

public PosControlException (string message, Microsoft.PointOfService.ErrorCode errorCode, Exception e);
new Microsoft.PointOfService.PosControlException : string * Microsoft.PointOfService.ErrorCode * Exception -> Microsoft.PointOfService.PosControlException
Public Sub New (message As String, errorCode As ErrorCode, e As Exception)

Parameters

message
String

A string that contains text that explains the reason for the exception.

errorCode
ErrorCode

An ErrorCode value that represents the error code for the exception.

e
Exception

The exception that is the cause of the PosControlException being constructed. If this parameter is not null (Nothing in Visual Basic), the exception provided is available to exception handling code as the PosControlException's InnerException.

Applies to

PosControlException(String, ErrorCode, Int32)

Creates an instance of the PosControlException class with a specified error message, error code, and extended error code value.

public PosControlException (string message, Microsoft.PointOfService.ErrorCode errorCode, int errorCodeExtended);
new Microsoft.PointOfService.PosControlException : string * Microsoft.PointOfService.ErrorCode * int -> Microsoft.PointOfService.PosControlException
Public Sub New (message As String, errorCode As ErrorCode, errorCodeExtended As Integer)

Parameters

message
String

A string that contains text that explains the reason for the exception.

errorCode
ErrorCode

An ErrorCode value that represents the error code for the exception. If an extended error code is provided, this value should be Extended.

errorCodeExtended
Int32

The extended error code for the exception. This value is typically device-specific. See the documentation for the POS for .NET device in question to discover what values may be passed here.

Applies to

PosControlException(String, ErrorCode, Int32, Exception)

Creates an instance of the PosControlException class with a specified error message, error code, extended error code value, and the exception that is the cause of the current exception.

public PosControlException (string message, Microsoft.PointOfService.ErrorCode errorCode, int errorCodeExtended, Exception e);
new Microsoft.PointOfService.PosControlException : string * Microsoft.PointOfService.ErrorCode * int * Exception -> Microsoft.PointOfService.PosControlException
Public Sub New (message As String, errorCode As ErrorCode, errorCodeExtended As Integer, e As Exception)

Parameters

message
String

A string that contains text that explains the reason for the exception.

errorCode
ErrorCode

An ErrorCode value that represents the error code for the exception. If an extended error code is provided, this value should be Extended.

errorCodeExtended
Int32

The extended error code for the exception. This value is typically device-specific. See the documentation for the POS for .NET device in question to discover what values may be passed here.

e
Exception

The exception that is the cause of the PosControlException being constructed. If this parameter is not null (Nothing in Visual Basic), the exception provided is available to exception handling code as the PosControlException's InnerException.

Applies to