public enum DwsError extends Enum<DwsError>
Enum of standard errors that may be returned while working with DwsService methods.
Enum Constant and Description |
---|
ALREADY_EXISTS
The specified URL already exists
|
CONFLICT
Another user modified the specified item
|
FAILED
General Failure
|
FOLDER_NOT_FOUND
The parent folder does not exist
|
ITEM_NOT_FOUND
Could not find the specified item
|
LIST_NOT_FOUND
The specified list does not exist
|
NO_ACCESS
The user does not have sufficient rights
|
QUOTA_EXCEEDED
This operation exceeds the user's quota
|
SERVER_FAILURE
Server Failure
|
TOO_MANY_ITEMS
The specified list contains more than 99 items
|
WEB_CONTAINS_SUBWEB
The document workspace contains subsites
|
Modifier and Type | Method and Description |
---|---|
String |
toCode() |
int |
toInt() |
static DwsError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DwsError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DwsError NO_ACCESS
public static final DwsError CONFLICT
public static final DwsError ITEM_NOT_FOUND
public static final DwsError LIST_NOT_FOUND
public static final DwsError TOO_MANY_ITEMS
public static final DwsError FOLDER_NOT_FOUND
public static final DwsError WEB_CONTAINS_SUBWEB
public static final DwsError ALREADY_EXISTS
public static final DwsError QUOTA_EXCEEDED
public static final DwsError FAILED
public static final DwsError SERVER_FAILURE
public static DwsError[] values()
for (DwsError c : DwsError.values()) System.out.println(c);
public static DwsError valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int toInt()
public String toCode()
Copyright © 2005–2017 Alfresco Software. All rights reserved.