EnergyStreamThrowCAPEException 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
public void ThrowCAPEException(
	ref Exception ex,
	string name,
	string description,
	string interf,
	string moreinfo,
	string operation,
	string scope,
	int code
)

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.

See Also