com.gigaspaces.serialization.pbs.commands
Class DotNetException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gigaspaces.serialization.pbs.commands.DotNetException
All Implemented Interfaces:
Serializable

public class DotNetException
extends RuntimeException

Encapsulates an exception that happened on the .Net side and is not converted to a specific Java exception

Since:
6.1
See Also:
Serialized Form

Constructor Summary
DotNetException(String name, String message, String dotNetStackTrace, DotNetException innerException)
          Constructs a new DotNetException
 
Method Summary
 String getDotNetStackTrace()
           
 String getName()
           
 Throwable initCause(Throwable cause)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DotNetException

public DotNetException(String name,
                       String message,
                       String dotNetStackTrace,
                       DotNetException innerException)
Constructs a new DotNetException

Parameters:
name - .Net exception's name
message - .Net exception's message
dotNetStackTrace - .Net stack trace
innerException - .Net inner exception
Method Detail

getDotNetStackTrace

public String getDotNetStackTrace()
Returns:
String representing the .Net stack trace

getName

public String getName()
Returns:
String representing the .Net exception name

toString

public String toString()
Overrides:
toString in class Throwable

initCause

public Throwable initCause(Throwable cause)
Overrides:
initCause in class Throwable