Energy StreamThrow CAPEException Method
Stores CAPE-OPEN error information and throws a CapeComputationException wrapping the original exception.
Definition
Namespace: DWSIM.UnitOperations.Streams
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
C#
public void ThrowCAPEException(
ref Exception ex,
string name,
string description,
string interf,
string moreinfo,
string operation,
string scope,
int code
)VB
Public Sub ThrowCAPEException (
ByRef ex As Exception,
name As String,
description As String,
interf As String,
moreinfo As String,
operation As String,
scope As String,
code As Integer
)Parameters
- ex Exception
- The original exception that triggered the CAPE-OPEN error.
- name String
- The name of the component raising the exception.
- description String
- A human-readable description of the error.
- interf String
- The name of the CAPE-OPEN interface where the error occurred.
- moreinfo String
- Additional information about the error condition.
- operation String
- The name of the operation that failed.
- scope String
- The scope in which the error occurred.
- code Int32
- The CAPE-OPEN error code.