 | JVMBridgeExceptionTExceptionCreateWithSignature Method |
Use JVMBridgeException.CreateWithSignature
Used to create instance of TException
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.6.260211-3303cfbd59f6cc2018120255fe5611c980b1077c
Syntax[ObsoleteAttribute("Use JVMBridgeException.CreateWithSignature")]
public static TException CreateWithSignature(
string signature,
params Object[] args
)<ObsoleteAttribute("Use JVMBridgeException.CreateWithSignature")>
Public Shared Function CreateWithSignature (
signature As String,
ParamArray args As Object()
) As TExceptionParameters
- signature String
- The JNI constructor signature to be used
- args Object
- The arguments of constructor
Return Value
TExceptionA Java instance of
TException
RemarksYou cannot use throw on the returned TException to raise an exception to Java context. This is a special method to allocate an exception in Java context. It avoids reflection problems with the behavior used to report back in .NET the exceptions raised from Java methods.
See Also