Enum RpcErrorException.StatusCode
- java.lang.Object
-
- java.lang.Enum<RpcErrorException.StatusCode>
-
- org.hertsstack.core.exception.rpc.RpcErrorException.StatusCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RpcErrorException.StatusCode>
- Enclosing class:
- RpcErrorException
public static enum RpcErrorException.StatusCode extends java.lang.Enum<RpcErrorException.StatusCode>
Status Code enum See: StatusCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.Status
convertToGrpc(RpcErrorException.StatusCode code)
Convert to io.grpc.Statusint
getIntegerCode()
java.lang.String
getStringCode()
static RpcErrorException.StatusCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RpcErrorException.StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Status0
public static final RpcErrorException.StatusCode Status0
-
Status1
public static final RpcErrorException.StatusCode Status1
-
Status2
public static final RpcErrorException.StatusCode Status2
-
Status3
public static final RpcErrorException.StatusCode Status3
-
Status4
public static final RpcErrorException.StatusCode Status4
-
Status5
public static final RpcErrorException.StatusCode Status5
-
Status6
public static final RpcErrorException.StatusCode Status6
-
Status7
public static final RpcErrorException.StatusCode Status7
-
Status8
public static final RpcErrorException.StatusCode Status8
-
Status9
public static final RpcErrorException.StatusCode Status9
-
Status10
public static final RpcErrorException.StatusCode Status10
-
Status11
public static final RpcErrorException.StatusCode Status11
-
Status12
public static final RpcErrorException.StatusCode Status12
-
Status13
public static final RpcErrorException.StatusCode Status13
-
Status14
public static final RpcErrorException.StatusCode Status14
-
Status15
public static final RpcErrorException.StatusCode Status15
-
Status16
public static final RpcErrorException.StatusCode Status16
-
-
Method Detail
-
values
public static RpcErrorException.StatusCode[] 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 (RpcErrorException.StatusCode c : RpcErrorException.StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RpcErrorException.StatusCode 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
-
getStringCode
public java.lang.String getStringCode()
-
getIntegerCode
public int getIntegerCode()
-
convertToGrpc
public io.grpc.Status convertToGrpc(RpcErrorException.StatusCode code)
Convert to io.grpc.Status- Parameters:
code
- StatusCode- Returns:
- io.grpc.Status
-
-