org.gridforum.gridrpc
Class GrpcException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.gridforum.gridrpc.GrpcException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NgException

public class GrpcException
extends java.lang.Exception

Keeps information about an occurred error in Grid RPC libraries.
If error occurred in Grid RPC libraries, an object of this class must be thrown.
This class keeps string which describe about an error, and an Exception object which was catched in Grid RPC libraries.

See Also:
Serialized Form

Field Summary
 java.lang.Exception innerException
          an Exception object which was catched in Grid RPC libraries.
 java.io.PrintStream os
          a PrintStream object to put a message about error.
You can change where to put information strings by setting this variable.
 java.lang.String str
          a string which describe about an error.
 
Constructor Summary
GrpcException()
          Creates GrpcException
GrpcException(java.lang.Exception e)
          Creates GrpcException with Exception
GrpcException(java.lang.String str)
          Creates GrpcException with string
 
Method Summary
 void printStackTrace()
          Prints information of stackTrace to PrintStream specified by os.
 java.lang.String toString()
          Prints an information string which described about an error to PrintStream specified by os.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

str

public java.lang.String str
a string which describe about an error.


innerException

public java.lang.Exception innerException
an Exception object which was catched in Grid RPC libraries.


os

public java.io.PrintStream os
a PrintStream object to put a message about error.
You can change where to put information strings by setting this variable.

Constructor Detail

GrpcException

public GrpcException()
Creates GrpcException


GrpcException

public GrpcException(java.lang.String str)
Creates GrpcException with string

Parameters:
str - a string which describe about an error.

GrpcException

public GrpcException(java.lang.Exception e)
Creates GrpcException with Exception

Parameters:
e - an Exception object which was catched in Grid RPC libraries.
Method Detail

printStackTrace

public void printStackTrace()
Prints information of stackTrace to PrintStream specified by os.

See Also:
Throwable.printStackTrace()

toString

public java.lang.String toString()
Prints an information string which described about an error to PrintStream specified by os.

See Also:
Object.toString()