Share via


PosException Constructors

Definition

Overloads

PosException()

Creates an instance of the PosException class.

PosException(String)

Creates an instance of the PosException class with a specified error message.

PosException(SerializationInfo, StreamingContext)

Creates an instance of the PosException class with serialized data.

PosException(String, Exception)

Creates an instance of the PosException class with a specified error message and a reference to the inner exception that is the cause of this exception.

PosException(String, ErrorCode, Int32)

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

PosException(String, ErrorCode, Int32, Exception)

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

PosException()

Creates an instance of the PosException class.

protected PosException ();
Protected Sub New ()

Applies to

PosException(String)

Creates an instance of the PosException class with a specified error message.

protected PosException (string message);
new Microsoft.PointOfService.PosException : string -> Microsoft.PointOfService.PosException
Protected Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

PosException(SerializationInfo, StreamingContext)

Creates an instance of the PosException class with serialized data.

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

Parameters

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

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

Applies to

PosException(String, Exception)

Creates an instance of the PosException class with a specified error message and a reference to the inner exception that is the cause of this exception.

protected PosException (string message, Exception e);
new Microsoft.PointOfService.PosException : string * Exception -> Microsoft.PointOfService.PosException
Protected Sub New (message As String, e As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

e
Exception

The exception that is the cause of the current exception. If the e parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Applies to

PosException(String, ErrorCode, Int32)

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

protected PosException (string message, Microsoft.PointOfService.ErrorCode errorCode, int errorCodeExtended);
new Microsoft.PointOfService.PosException : string * Microsoft.PointOfService.ErrorCode * int -> Microsoft.PointOfService.PosException
Protected Sub New (message As String, errorCode As ErrorCode, errorCodeExtended As Integer)

Parameters

message
String

The error message that explains the reason for the exception.

errorCode
ErrorCode

The error code for the exception.

errorCodeExtended
Int32

The extended error code for the exception.

Applies to

PosException(String, ErrorCode, Int32, Exception)

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

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

Parameters

message
String

The error message that explains the reason for the exception.

errorCode
ErrorCode

The error code for the exception.

errorCodeExtended
Int32

The extended error code for the exception.

e
Exception

The exception that is the cause of the current exception. If the e parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Applies to