Package com.saperion.rmi.serverexception
Enum SaRMIFolderException.ErrorCode
- java.lang.Object
-
- java.lang.Enum<SaRMIFolderException.ErrorCode>
-
- com.saperion.rmi.serverexception.SaRMIFolderException.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SaRMIFolderException.ErrorCode>
- Enclosing class:
- SaRMIFolderException
public static enum SaRMIFolderException.ErrorCode extends java.lang.Enum<SaRMIFolderException.ErrorCode>
Error code.- Author:
- mak
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWED_CHILDREN_MAX_LIMIT_EXCEEDED
Limit exceeded.FOLDER_ALREADY_EXISTS
Tried to create a folder that already exists.GENERIC
Generic folder error.INVALID_DEPTH
Invalid depth.INVALID_MAX_RESULTS
Invalid value for max results.OK
OK.PARENT_CHILD_VIOLATION
Tried to move or copy a folder into one of it's child-folders.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SaRMIFolderException.ErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SaRMIFolderException.ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final SaRMIFolderException.ErrorCode OK
OK.
-
ALLOWED_CHILDREN_MAX_LIMIT_EXCEEDED
public static final SaRMIFolderException.ErrorCode ALLOWED_CHILDREN_MAX_LIMIT_EXCEEDED
Limit exceeded.
-
INVALID_DEPTH
public static final SaRMIFolderException.ErrorCode INVALID_DEPTH
Invalid depth.
-
INVALID_MAX_RESULTS
public static final SaRMIFolderException.ErrorCode INVALID_MAX_RESULTS
Invalid value for max results.
-
PARENT_CHILD_VIOLATION
public static final SaRMIFolderException.ErrorCode PARENT_CHILD_VIOLATION
Tried to move or copy a folder into one of it's child-folders.
-
FOLDER_ALREADY_EXISTS
public static final SaRMIFolderException.ErrorCode FOLDER_ALREADY_EXISTS
Tried to create a folder that already exists.
-
GENERIC
public static final SaRMIFolderException.ErrorCode GENERIC
Generic folder error. Message is supplied by throwing method.
-
-
Method Detail
-
values
public static SaRMIFolderException.ErrorCode[] 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 (SaRMIFolderException.ErrorCode c : SaRMIFolderException.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SaRMIFolderException.ErrorCode 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
-
-