PosLibraryException 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.
Overloads
PosLibraryException() | |
PosLibraryException(String) |
Initializes a new instance of the PosLibraryException class with a specified error message. |
PosLibraryException(SerializationInfo, StreamingContext) |
Initializes a new instance of the PosLibraryException class with serialized data. |
PosLibraryException(String, Exception) |
Initializes a new instance of the PosLibraryException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
PosLibraryException()
public PosLibraryException ();
Public Sub New ()
Applies to
PosLibraryException(String)
Initializes a new instance of the PosLibraryException class with a specified error message.
public PosLibraryException (string message);
new Microsoft.PointOfService.PosLibraryException : string -> Microsoft.PointOfService.PosLibraryException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
PosLibraryException(SerializationInfo, StreamingContext)
Initializes a new instance of the PosLibraryException class with serialized data.
protected PosLibraryException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new Microsoft.PointOfService.PosLibraryException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PointOfService.PosLibraryException
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
PosLibraryException(String, Exception)
Initializes a new instance of the PosLibraryException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public PosLibraryException (string message, Exception e);
new Microsoft.PointOfService.PosLibraryException : string * Exception -> Microsoft.PointOfService.PosLibraryException
Public Sub New (message As String, e As Exception)
Parameters
- message
- String
The error message that explains the reason for the 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.