C# Class Opc.Ua.ServiceResultException

Inheritance: System.Exception
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Public Methods

Method Description
Create ( Opc.Ua.StatusCode code, int index, DiagnosticInfoCollection diagnosticInfos, IList stringTable ) : ServiceResultException

Creates a new instance of a ServiceResultException

Create ( uint code, Exception e, string format ) : ServiceResultException

Creates a new instance of a ServiceResultException

Create ( uint code, string format ) : ServiceResultException

Creates a new instance of a ServiceResultException

ServiceResultException ( ) : System

The default constructor.

ServiceResultException ( Exception e, uint defaultCode ) : System

Initializes the exception with a message and an exception.

ServiceResultException ( ServiceResult status ) : System

Initializes the exception with a Result object.

ServiceResultException ( string message ) : System

Initializes the exception with a message.

ServiceResultException ( string message, Exception e ) : System

Initializes the exception with a message and an exception.

ServiceResultException ( uint statusCode ) : System

Initializes the exception with a status code.

ServiceResultException ( uint statusCode, Exception e ) : System

Initializes the exception with a status code and an inner exception.

ServiceResultException ( uint statusCode, string message ) : System

Initializes the exception with a status code and a message.

ServiceResultException ( uint statusCode, string message, Exception e ) : System

Initializes the exception with a status code, a message and an inner exception.

ToLongString ( ) : string

Returns a formatted string with the contents of exeception.

Private Methods

Method Description
GetMessage ( ServiceResult status ) : string

Extracts an exception message from a Result object.

Method Details

Create() public static method

Creates a new instance of a ServiceResultException
public static Create ( Opc.Ua.StatusCode code, int index, DiagnosticInfoCollection diagnosticInfos, IList stringTable ) : ServiceResultException
code Opc.Ua.StatusCode
index int
diagnosticInfos DiagnosticInfoCollection
stringTable IList
return ServiceResultException

Create() public static method

Creates a new instance of a ServiceResultException
public static Create ( uint code, Exception e, string format ) : ServiceResultException
code uint
e System.Exception
format string
return ServiceResultException

Create() public static method

Creates a new instance of a ServiceResultException
public static Create ( uint code, string format ) : ServiceResultException
code uint
format string
return ServiceResultException

ServiceResultException() public method

The default constructor.
public ServiceResultException ( ) : System
return System

ServiceResultException() public method

Initializes the exception with a message and an exception.
public ServiceResultException ( Exception e, uint defaultCode ) : System
e System.Exception
defaultCode uint
return System

ServiceResultException() public method

Initializes the exception with a Result object.
public ServiceResultException ( ServiceResult status ) : System
status ServiceResult
return System

ServiceResultException() public method

Initializes the exception with a message.
public ServiceResultException ( string message ) : System
message string
return System

ServiceResultException() public method

Initializes the exception with a message and an exception.
public ServiceResultException ( string message, Exception e ) : System
message string
e System.Exception
return System

ServiceResultException() public method

Initializes the exception with a status code.
public ServiceResultException ( uint statusCode ) : System
statusCode uint
return System

ServiceResultException() public method

Initializes the exception with a status code and an inner exception.
public ServiceResultException ( uint statusCode, Exception e ) : System
statusCode uint
e System.Exception
return System

ServiceResultException() public method

Initializes the exception with a status code and a message.
public ServiceResultException ( uint statusCode, string message ) : System
statusCode uint
message string
return System

ServiceResultException() public method

Initializes the exception with a status code, a message and an inner exception.
public ServiceResultException ( uint statusCode, string message, Exception e ) : System
statusCode uint
message string
e System.Exception
return System

ToLongString() public method

Returns a formatted string with the contents of exeception.
public ToLongString ( ) : string
return string