CVB.Net 14.1
CvbException Class Reference

Base exception for all Cvb exceptions. More...

Inherits ExternalException.

Public Member Functions

 CvbException (string message, int errorCode)
 Creates a generic CVB exception object with the given message and errorCode . More...
 
 CvbException (string message)
 Creates a generic CVB exception object with the generic error code and the given message . More...
 

Static Public Member Functions

static Exception FromCvbResult (int errorCode)
 Returns the appropriate Exception object based on the given errorCode . More...
 
static Exception FromCvbResult (int errorCode, string message)
 Returns the appropriate Exception object based on the given errorCode with the given message text. More...
 

Protected Member Functions

 CvbException (int errorCode)
 Creates a generic CVB exception object with the given errorCode and no message text. More...
 
 CvbException ()
 Creates a generic CVB exception object with the generic error code and no message text.
 

Detailed Description

Base exception for all Cvb exceptions.

Constructor & Destructor Documentation

◆ CvbException() [1/3]

CvbException ( string  message,
int  errorCode 
)

Creates a generic CVB exception object with the given message and errorCode .

Parameters
messageHuman readable error reason.
errorCodeCVB result code.

◆ CvbException() [2/3]

CvbException ( string  message)

Creates a generic CVB exception object with the generic error code and the given message .

Parameters
messageHuman readable error reason.

◆ CvbException() [3/3]

CvbException ( int  errorCode)
protected

Creates a generic CVB exception object with the given errorCode and no message text.

Parameters
errorCode

Member Function Documentation

◆ FromCvbResult() [1/2]

static Exception FromCvbResult ( int  errorCode)
static

Returns the appropriate Exception object based on the given errorCode .

The returned exception object has no message.

Parameters
errorCodeCVB result code smaller than zero.
Returns
Appropriate Exception object.

◆ FromCvbResult() [2/2]

static Exception FromCvbResult ( int  errorCode,
string  message 
)
static

Returns the appropriate Exception object based on the given errorCode with the given message text.

Parameters
errorCodeCVB result code smaller than zero.
messageHuman readable error reason.
Returns
Appropriate Exception object.