Search Results for

Show / Hide Table of Contents

# Class JavaException

Indicates an error on Java side and contains full Java stack trace.

##### Inheritance

System.Object
IgniteException
JavaException

###### Namespace: Apache.Ignite.Core.Common

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public class JavaException : IgniteException

### 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
--- | --- | ---
SerializationInfo | info | Serialization information.
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.
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.
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 with information about the exception.

##### Declaration

    public override void GetObjectData(SerializationInfo info, StreamingContext context)

##### Parameters

Type | Name | Description
--- | --- | ---
SerializationInfo | info | The that holds the serialized object data about the exception being thrown.
StreamingContext | context | The that contains contextual information about the source or destination.