com.ovh.ws.api
Enum OvhWsException.Category
java.lang.Object
java.lang.Enum<OvhWsException.Category>
com.ovh.ws.api.OvhWsException.Category
- All Implemented Interfaces:
- Serializable, Comparable<OvhWsException.Category>
- Enclosing class:
- OvhWsException
public static enum OvhWsException.Category
- extends Enum<OvhWsException.Category>
CallException
public static final OvhWsException.Category CallException
SessionException
public static final OvhWsException.Category SessionException
RightException
public static final OvhWsException.Category RightException
RecoverableException
public static final OvhWsException.Category RecoverableException
SecurityException
public static final OvhWsException.Category SecurityException
LockException
public static final OvhWsException.Category LockException
FatalException
public static final OvhWsException.Category FatalException
values
public static OvhWsException.Category[] 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 (OvhWsException.Category c : OvhWsException.Category.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OvhWsException.Category valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
toInteger
public Integer toInteger()
fromInteger
public static OvhWsException.Category fromInteger(Integer status)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Copyright © 2012 OVH. All Rights Reserved.