Package sk.ipesoft.d2000.d2japi
Enum RpcReturnContextErrorType
- java.lang.Object
-
- java.lang.Enum<RpcReturnContextErrorType>
-
- sk.ipesoft.d2000.d2japi.RpcReturnContextErrorType
-
public enum RpcReturnContextErrorType extends java.lang.Enum<RpcReturnContextErrorType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description badParameters
RPC has been called with wrong number or types of arguments.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
getCode()
Get actual code being sent to the kernelstatic int
getExceptionCode()
Get internal code for exception being thrown.static int
getNoErrorCode()
Get internal code for no error.static int
getNotFoundCode()
Get internal code for bad RPC name.static RpcReturnContextErrorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RpcReturnContextErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
badParameters
public static final RpcReturnContextErrorType badParameters
RPC has been called with wrong number or types of arguments.
-
-
Method Detail
-
values
public static RpcReturnContextErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RpcReturnContextErrorType c : RpcReturnContextErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RpcReturnContextErrorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getExceptionCode
public static int getExceptionCode()
Get internal code for exception being thrown.- Returns:
- internal code for exception being thrown
-
getNoErrorCode
public static int getNoErrorCode()
Get internal code for no error.- Returns:
- internal code for no error
-
getNotFoundCode
public static int getNotFoundCode()
Get internal code for bad RPC name.- Returns:
- internal code for bad RPC name
-
getCode
public abstract int getCode()
Get actual code being sent to the kernel- Returns:
- actual code being sent to the kernel
-
-