org.apgrid.grpc.ng
Class NgIOException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.gridforum.gridrpc.GrpcException
              extended byorg.apgrid.grpc.ng.NgException
                  extended byorg.apgrid.grpc.ng.NgIOException
All Implemented Interfaces:
java.io.Serializable

public class NgIOException
extends NgException

Thrown to indicate that something wrong was happened when processing Input/Output.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.gridforum.gridrpc.GrpcException
innerException, os, str
 
Constructor Summary
NgIOException(byte[] buffer)
          Creates NgIOException with the data which was the transmission and reception when error occurred.
NgIOException(java.lang.Exception e)
          Creates NgIOException with original Exception.
NgIOException(java.lang.String string)
          Creates NgIOException with an error message.
NgIOException(java.lang.String string, java.lang.Exception e)
          Creates NgIOException with an error message and original Exception.
 
Method Summary
 byte[] getBuffer()
          Gets the data which was the transmission and reception when error occurred.
 
Methods inherited from class org.gridforum.gridrpc.GrpcException
printStackTrace, toString
 
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
 

Constructor Detail

NgIOException

public NgIOException(java.lang.String string,
                     java.lang.Exception e)
Creates NgIOException with an error message and original Exception.

Parameters:
string - an error message.
e - original Exception.

NgIOException

public NgIOException(java.lang.Exception e)
Creates NgIOException with original Exception.

Parameters:
e - original Exception.

NgIOException

public NgIOException(java.lang.String string)
Creates NgIOException with an error message.

Parameters:
string - an error message.

NgIOException

public NgIOException(byte[] buffer)
Creates NgIOException with the data which was the transmission and reception when error occurred.

Parameters:
buffer - the data which was the transmission and reception when error occurred.
Method Detail

getBuffer

public byte[] getBuffer()
Gets the data which was the transmission and reception when error occurred.

Returns:
the data which was the transmission and reception when error occurred.