Class JavaException
Indicates an error on Java side and contains full Java stack trace.
Implements
Inherited Members
Namespace: Apache.Ignite.Core.Common
Assembly: Apache.Ignite.Core.dll
Syntax
[Serializable]
public class JavaException : IgniteException, ISerializable, _Exception
Constructors
JavaException()
Initializes a new instance of the JavaException class.
Declaration
public JavaException()
JavaException(SerializationInfo, StreamingContext)
Initializes a new instance of the JavaException class.
Declaration
protected JavaException(SerializationInfo info, StreamingContext ctx)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization information. |
System.Runtime.Serialization.StreamingContext | ctx | Streaming context. |
JavaException(String)
Initializes a new instance of the JavaException class.
Declaration
public JavaException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
JavaException(String, Exception)
Initializes a new instance of the JavaException class.
Declaration
public JavaException(string message, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Exception | cause | The cause. |
JavaException(String, String, String)
Initializes a new instance of the JavaException class.
Declaration
public JavaException(string javaClassName, string javaMessage, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System.String | javaClassName | Java exception class name. |
System.String | javaMessage | Java exception message. |
System.String | stackTrace | Java stack trace. |
JavaException(String, String, String, Exception)
Initializes a new instance of the JavaException class.
Declaration
public JavaException(string javaClassName, string javaMessage, string stackTrace, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
System.String | javaClassName | Java exception class name. |
System.String | javaMessage | Java exception message. |
System.String | stackTrace | Java stack trace. |
System.Exception | cause | The cause. |
Properties
JavaClassName
Gets the Java exception class name.
Declaration
public string JavaClassName { get; }
Property Value
Type | Description |
---|---|
System.String |
JavaMessage
Gets the Java exception message.
Declaration
public string JavaMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |