org.apgrid.grpc.ng
Class NgArgSizeException

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.NgArgSizeException
All Implemented Interfaces:
java.io.Serializable

public class NgArgSizeException
extends NgException

Thrown to indicate that the size of specified array is incorrect.
Probably, the size of the actually passed arrangement differs from the size defined as IDL file.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.gridforum.gridrpc.GrpcException
innerException, os, str
 
Constructor Summary
NgArgSizeException(int size, int accessing, int dimension)
          Creates NgArgSizeException with information of error.
NgArgSizeException(java.lang.String string)
          Creates NgArgSizeException with an error message.
 
Method Summary
 java.lang.String toString()
          Prints an information string which described about an error to PrintStream specified by GrpcException.os.
 
Methods inherited from class org.gridforum.gridrpc.GrpcException
printStackTrace
 
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

NgArgSizeException

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

Parameters:
string - a string which indicates error.

NgArgSizeException

public NgArgSizeException(int size,
                          int accessing,
                          int dimension)
Creates NgArgSizeException with information of error.

Parameters:
size - size of the array.
accessing - the number of the array tried in order to access.
dimension - the index number of depth of the array.
Method Detail

toString

public java.lang.String toString()
Description copied from class: GrpcException
Prints an information string which described about an error to PrintStream specified by GrpcException.os.

Overrides:
toString in class GrpcException
See Also:
Object.toString()