org.apgrid.grpc.ng
Class NgArgTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gridforum.gridrpc.GrpcException
org.apgrid.grpc.ng.NgException
org.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
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 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 |
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 numberactualType
- the type of actual argumentrequiredType
- required type
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()