org.apgrid.grpc.ng
Class NgArgTypeException

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

public class NgArgTypeException
extends NgException

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.gridforum.gridrpc.GrpcException
innerException, os, str
 
Constructor Summary
NgArgTypeException(java.lang.Exception e)
          Creates NgArgTypeException with an Exception object.
NgArgTypeException(int argNum, java.lang.String actualType, java.lang.String requiredType)
          Creates NgArgTypeException with information of error.
NgArgTypeException(java.lang.String string)
          Creates NgArgTypeException 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

NgArgTypeException

public NgArgTypeException(java.lang.Exception e)
Creates NgArgTypeException with an Exception object.

Parameters:
e - an original Exception.

NgArgTypeException

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

Parameters:
string - a string which indicates error.

NgArgTypeException

public NgArgTypeException(int argNum,
                          java.lang.String actualType,
                          java.lang.String requiredType)
Creates NgArgTypeException with information of error.

Parameters:
argNum - argument number
actualType - the type of actual argument
requiredType - required type
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()