Class JVMBridgeException
Java Exception base class
public class JVMBridgeException : Exception, ISerializable, _Exception, IJVMBridgeCore
- Inheritance
-
JVMBridgeException
- Implements
- Derived
-
JVMBridgeException<TException>
- Inherited Members
- Extension Methods
Constructors
JVMBridgeException()
Initializes a new instance of the Exception class.
public JVMBridgeException()
JVMBridgeException(string)
Initializes a new instance of the Exception class with a specified error message.
public JVMBridgeException(string message)
Parameters
message
stringThe message that describes the error.
JVMBridgeException(string, Exception)
Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.
public JVMBridgeException(string message, Exception innerException)
Parameters
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
Properties
BridgeClassName
Java class name of the exception
public virtual string BridgeClassName { get; }
Property Value
BridgeInstance
The instance of BridgeClassName
public IJavaObject BridgeInstance { get; protected set; }
Property Value
DynBridgeInstance
The dynamic accessor to BridgeInstance
public dynamic DynBridgeInstance { get; }
Property Value
- dynamic
StackTrace
Gets a string representation of the immediate frames on the call stack.
public override string StackTrace { get; }
Property Value
- string
A string that describes the immediate frames of the call stack.
Methods
IExecute(string, params object[])
Executes an instance method
public object IExecute(string methodName, params object[] args)
Parameters
Returns
- object
The result of execution. Void functions returns null.
IExecuteArray<TArrayType>(string, params object[])
Execute the method and build the result as an array of TArrayType
public TArrayType[] IExecuteArray<TArrayType>(string methodName, params object[] args)
Parameters
Returns
- TArrayType[]
An array of
TArrayType
Type Parameters
TArrayType
The expected Type of the resulting array
IExecuteWithSignature(string, string, params object[])
Executes an instance method
public object IExecuteWithSignature(string methodName, string signature, params object[] args)
Parameters
methodName
stringThe instance method to be invoked
signature
stringMethod signature to use in search criteria
args
object[]Possible arguments
Returns
- object
The result of execution. Void functions returns null.
IExecuteWithSignatureArray<TArrayType>(string, string, params object[])
Execute the method and build the result as an array of TArrayType
public TArrayType[] IExecuteWithSignatureArray<TArrayType>(string methodName, string signature, params object[] args)
Parameters
methodName
stringThe method to execute
signature
stringMethod signature to use in search criteria
args
object[]The aruments
Returns
- TArrayType[]
An array of
TArrayType
Type Parameters
TArrayType
The expected Type of the resulting array
IExecuteWithSignature<TReturn>(string, string, params object[])
Executes an instance method
public TReturn IExecuteWithSignature<TReturn>(string methodName, string signature, params object[] args)
Parameters
methodName
stringThe instance method to be invoked
signature
stringMethod signature to use in search criteria
args
object[]Possible arguments
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TReturn
The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
IExecuteWithSignature<TNewClass, TReturn>(string, string, params object[])
Executes an instance method
public TReturn IExecuteWithSignature<TNewClass, TReturn>(string methodName, string signature, params object[] args) where TNewClass : IJVMBridgeBase, TReturn
Parameters
methodName
stringThe instance method to be invoked
signature
stringMethod signature to use in search criteria
args
object[]Possible arguments
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClass
The argument type to be used
TReturn
The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])
Executes an instance method
public TReturn IExecuteWithSignature<TNewClass, TReturn, TConverter>(string methodName, string signature, params object[] args) where TNewClass : IJVMBridgeBase, TReturn where TConverter : IJVMBridgeBaseConvert<TNewClass, TReturn>, new()
Parameters
methodName
stringThe instance method to be invoked
signature
stringMethod signature to use in search criteria
args
object[]Possible arguments
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClass
The argument type to be used
TReturn
The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
TConverter
The converter to be used to convert from
TNewClass
toTReturn
IExecute<TReturn>(string, params object[])
Executes an instance method
public TReturn IExecute<TReturn>(string methodName, params object[] args)
Parameters
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TReturn
The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
IExecute<TNewClass, TReturn>(string, params object[])
Executes an instance method
public TReturn IExecute<TNewClass, TReturn>(string methodName, params object[] args) where TNewClass : IJVMBridgeBase, TReturn
Parameters
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClass
The argument type to be used
TReturn
The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
IExecute<TNewClass, TReturn, TConverter>(string, params object[])
Executes an instance method
public TReturn IExecute<TNewClass, TReturn, TConverter>(string methodName, params object[] args) where TNewClass : IJVMBridgeBase, TReturn where TConverter : IJVMBridgeBaseConvert<TNewClass, TReturn>, new()
Parameters
Returns
- TReturn
The result of execution. Void functions returns default.
Type Parameters
TNewClass
The argument type to be used
TReturn
The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types
TConverter
The converter to be used to convert from
TNewClass
toTReturn
IsInstanceOf(IJavaType)
Verify if this IJavaObject is an instance of clazz
public bool IsInstanceOf(IJavaType clazz)
Parameters
Returns
- bool
true if this IJavaObject is an instance of
clazz
, otherwise false
IsInstanceOf<T>()
Verify if this IJavaObject is an instance of T
public bool IsInstanceOf<T>() where T : IJVMBridgeBase, new()
Returns
- bool
true if this IJavaObject is an instance of
T
, otherwise false
Type Parameters
T
A type implementing IJVMBridgeBase
New(IJavaObject)
Initialize a new JVMBridgeException class
public static JVMBridgeException New(IJavaObject javaObject)
Parameters
javaObject
IJavaObjectThe remote IJavaObject to be used
Returns
- JVMBridgeException
An newly initialized JVMBridgeException
New<TException>(IJavaObject)
Initialize a new TException
class
public static TException New<TException>(IJavaObject javaObject) where TException : JVMBridgeException
Parameters
javaObject
IJavaObjectThe remote IJavaObject to be used
Returns
- TException
An newly initialized
TException
Type Parameters
TException
An exception class inherited from JVMBridgeException<TException>