JuggerNET Runtime Library v3.6.54.0  3.6.54.0
Static Public Member Functions | Protected Member Functions | Properties | List of all members
Codemesh.JuggerNET.JuggerNETException Class Reference

The baseclass for all exceptions related to JuggerNET. This includes two major subhierarchies, framework exceptions and proxy exceptions. Among proxy excpetions, it makes sense to distinguish between errors and exceptions. More...

Inheritance diagram for Codemesh.JuggerNET.JuggerNETException:
Inheritance graph
[legend]
Collaboration diagram for Codemesh.JuggerNET.JuggerNETException:
Collaboration graph
[legend]

Static Public Member Functions

static jvalue ToJavaException (System.Exception e)
 Returns a jvalue containing a Java exception instance, suitable for throwing into the JVM. If the passed in exception is a proxy exception, we simply set it into the result. If the passed in exception is a .NET exception, we take as much information as possible from it and create a Java RuntimeException that we set into the result. More...
 

Protected Member Functions

 JuggerNETException ()
 The default constructor. More...
 
 JuggerNETException (string msg)
 Creates an exception with a given message. More...
 
 JuggerNETException (string msg, Exception exc)
 Creates an exception with a given message and root cause. More...
 
 JuggerNETException (SerializationInfo info, StreamingContext ctx)
 Creates an exception from serialized data. More...
 

Properties

abstract bool IsFrameworkException [get]
 A readonly property that is true if the exception is due to an error in the JuggerNET framework, possibly due to a minsconfiguration or erroneous use of the JuggerNET API. More...
 
abstract bool IsProxyException [get]
 A readonly property that is true if the exception is due to an exception that occurred while executing Java code. More...
 
abstract bool IsProxyError [get]
 A readonly property that is true if the exception is due to an error that occurred while executing Java code. More...
 

Detailed Description

The baseclass for all exceptions related to JuggerNET. This includes two major subhierarchies, framework exceptions and proxy exceptions. Among proxy excpetions, it makes sense to distinguish between errors and exceptions.

Constructor & Destructor Documentation

◆ JuggerNETException() [1/4]

Codemesh.JuggerNET.JuggerNETException.JuggerNETException ( )
inlineprotected

The default constructor.

◆ JuggerNETException() [2/4]

Codemesh.JuggerNET.JuggerNETException.JuggerNETException ( string  msg)
inlineprotected

Creates an exception with a given message.

Parameters
msgThe exception message.

◆ JuggerNETException() [3/4]

Codemesh.JuggerNET.JuggerNETException.JuggerNETException ( string  msg,
Exception  exc 
)
inlineprotected

Creates an exception with a given message and root cause.

Parameters
msgThe exception message.
excAn exception that's the root cause for this exception.

◆ JuggerNETException() [4/4]

Codemesh.JuggerNET.JuggerNETException.JuggerNETException ( SerializationInfo  info,
StreamingContext  ctx 
)
inlineprotected

Creates an exception from serialized data.

Parameters
infoThe serialized exception data.
ctxThe serialization context.

Member Function Documentation

◆ ToJavaException()

static jvalue Codemesh.JuggerNET.JuggerNETException.ToJavaException ( System.Exception  e)
inlinestatic

Returns a jvalue containing a Java exception instance, suitable for throwing into the JVM. If the passed in exception is a proxy exception, we simply set it into the result. If the passed in exception is a .NET exception, we take as much information as possible from it and create a Java RuntimeException that we set into the result.

Parameters
ethe exception instance
Returns
a jvalue containing a Java exception instance

Property Documentation

◆ IsFrameworkException

abstract bool Codemesh.JuggerNET.JuggerNETException.IsFrameworkException
get

A readonly property that is true if the exception is due to an error in the JuggerNET framework, possibly due to a minsconfiguration or erroneous use of the JuggerNET API.

◆ IsProxyError

abstract bool Codemesh.JuggerNET.JuggerNETException.IsProxyError
get

A readonly property that is true if the exception is due to an error that occurred while executing Java code.

◆ IsProxyException

abstract bool Codemesh.JuggerNET.JuggerNETException.IsProxyException
get

A readonly property that is true if the exception is due to an exception that occurred while executing Java code.


The documentation for this class was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.