 | JVMBridgeExceptionCreateWithSignatureTException Method |
Used to create instance of TException
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.8.260410-ed5cc0c79218460f1e6b936e4bd65778f0bb23e9
Syntaxpublic static TException CreateWithSignature<TException>(
string signature,
params Object[] args
)
where TException : JVMBridgeException
Public Shared Function CreateWithSignature(Of TException As JVMBridgeException) (
signature As String,
ParamArray args As Object()
) As TException
Parameters
- signature String
- The JNI constructor signature to be used
- args Object
- The arguments of constructor
Type Parameters
- TException
- A Type extending JVMBridgeException
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