@PublicApi public enum StructureErrors extends Enum<StructureErrors> implements StructureError
StructureErrors
is a enumeration of all public Structure errors.
StructureError
,
StructureException
StructureError.CodeRange
Enum Constant and Description |
---|
ARCHIVED_STRUCTURE_EDIT_DENIED
Trying to edit archived structure.
|
AUTOMATION_ACCESS_DENIED
The user does not have access to automation feature.
|
AUTOMATION_FAILED
Automation feature failed.
|
CONSISTENT_OPERATION_FAILED
An operation that implements optimistic locking to achieve consistent result failed because of too many cycles in the optimistic lock.
|
CREATE_ITEM_FAILED
Structure attempted to create a new item but something failed in the corresponding module.
|
DECISION_REQUIRED
Indicates that there are additional decisions that need to be made by the user to execute the operations.
|
EFFECTOR_EXECUTION_DENIED
The user does not have access to execute effectors
|
FOREST_CHANGE_PROHIBITED_BY_PARENT_PERMISSIONS
When a structure has "requires editable parent" flag on, and the attempted operation is under an item that
the user does not have the edit access to.
|
FOREST_SOURCE_ACTION_FAILED
Generic update error for actions applied to a forest source.
|
GENERIC_ERROR
Non-specific error.
|
INVALID_FOREST_OPERATION
Invalid under/after/before coordinates used to change the forest, or other parameters used to make a forest operation.
|
INVALID_PARAMETER
Invalid parameter used (either in operation or in settings of a synchronizer or generator or other entity)
|
ITEM_EDIT_DENIED
Attempting to edit an item without permission.
|
ITEM_NOT_EXISTS_OR_NOT_ACCESSIBLE
Cannot access an item because either it is missing or the user does not have access to it.
|
JIRA_ADMIN_DENIED
The user does not have JIRA Administrators permission.
|
JOB_NOT_EXISTS
The background job is not available.
|
LICENSE_PROBLEM
Problem with Structure license or extension license, which prevents operation from being executed.
|
LOCK_FAILED
Internal problem with Structure locking mechanism.
|
MODULE_ERROR
An extension module is throwing an exception or fails to get linked to.
|
NOT_ALLOWED_TO_CREATE_STRUCTURE
The user does not have Create Structure permission.
|
NOTE_EDIT_DENIED
The user does not have permissions to edit or archive a note.
|
NOTE_NOT_EXISTS_OR_NOT_ACCESSIBLE
Inaccessible note.
|
PERSPECTIVE_CREATION_DENIED
The user does not have permissions to create perspectives.
|
PROJECT_NOT_ENABLED_FOR_STRUCTURE
Trying to do something with an issue from a project that is not enabled for Structure.
|
SAVED_COLUMN_MANAGEMENT_DENIED
The user does not have permissions to manage a saved column.
|
SAVED_COLUMN_NOT_EXISTS_OR_NOT_ACCESSIBLE
Inaccessible saved column.
|
SIGNATURE_MISMATCH
Signature has changed and the client needs to reload the initial data before applying updates.
|
STRUCTURE_ADMIN_DENIED
The user does not have Control access level to the structure.
|
STRUCTURE_AUTOMATION_EDIT_DENIED
The user does not have permission to configure automation in the structure.
|
STRUCTURE_EDIT_DENIED
The user does not have Edit access level to the structure.
|
STRUCTURE_NOT_EXISTS_OR_NOT_ACCESSIBLE
Trying to access a structure that does not exist, or the user has no read access to it.
|
STRUCTURE_OWNER_EDIT_DENIED
Trying to change structure's owner while not being an admin.
|
STRUCTURE_PLUGIN_ACCESS_DENIED
The user does not have access to Structure plugin functionality.
|
SUBSCRIPTION_NOT_EXISTS_OR_NOT_ACCESSIBLE
Cannot access an attribute subscription because either it is missing or the user does not have access to it.
|
UNAVAILABLE_MODULE
An extension module (item type, attribute loader, etc) is expected to exist in the system but was missing.
|
UNSUPPORTED_FOREST_SOURCE_OPERATION
Unsupported operation on
ForestSource — for example, trying to make changes on a read-only
source. |
UPDATE_ITEM_FAILED
Item update failed.
|
VIEW_ADMIN_DENIED
The user does not have Control permission on the view.
|
VIEW_CREATION_DENIED
The user does not have permissions to create views.
|
VIEW_EDIT_DENIED
The user does not have Edit permission on the view.
|
VIEW_NOT_EXISTS_OR_NOT_ACCESSIBLE
Inaccessible view.
|
Modifier and Type | Method and Description |
---|---|
StructureErrorCategory |
getCategory()
Returns error category.
|
int |
getCode()
Returns error code.
|
String |
toString() |
static StructureErrors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StructureErrors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
builder, causedBy, forIssue, forItem, forRow, forStructure, forView, is, isOneOf, isOneOf, name, withLocalizedMessage, withMessage, withoutMessage
public static final StructureErrors GENERIC_ERROR
Non-specific error. The meaning can be derived only from the error message and other parameters.
Implementation note: try to avoid using it and use a specific one instead.
public static final StructureErrors LICENSE_PROBLEM
public static final StructureErrors LOCK_FAILED
public static final StructureErrors INVALID_PARAMETER
public static final StructureErrors DECISION_REQUIRED
public static final StructureErrors FOREST_SOURCE_ACTION_FAILED
public static final StructureErrors UPDATE_ITEM_FAILED
StructureException.getItem()
.public static final StructureErrors CREATE_ITEM_FAILED
public static final StructureErrors FOREST_CHANGE_PROHIBITED_BY_PARENT_PERMISSIONS
public static final StructureErrors PROJECT_NOT_ENABLED_FOR_STRUCTURE
public static final StructureErrors STRUCTURE_NOT_EXISTS_OR_NOT_ACCESSIBLE
public static final StructureErrors NOT_ALLOWED_TO_CREATE_STRUCTURE
public static final StructureErrors STRUCTURE_ADMIN_DENIED
public static final StructureErrors STRUCTURE_EDIT_DENIED
public static final StructureErrors JIRA_ADMIN_DENIED
public static final StructureErrors STRUCTURE_PLUGIN_ACCESS_DENIED
public static final StructureErrors ARCHIVED_STRUCTURE_EDIT_DENIED
public static final StructureErrors STRUCTURE_OWNER_EDIT_DENIED
public static final StructureErrors STRUCTURE_AUTOMATION_EDIT_DENIED
public static final StructureErrors VIEW_NOT_EXISTS_OR_NOT_ACCESSIBLE
public static final StructureErrors VIEW_ADMIN_DENIED
public static final StructureErrors VIEW_EDIT_DENIED
public static final StructureErrors VIEW_CREATION_DENIED
public static final StructureErrors PERSPECTIVE_CREATION_DENIED
public static final StructureErrors ITEM_EDIT_DENIED
public static final StructureErrors AUTOMATION_ACCESS_DENIED
public static final StructureErrors EFFECTOR_EXECUTION_DENIED
public static final StructureErrors JOB_NOT_EXISTS
public static final StructureErrors ITEM_NOT_EXISTS_OR_NOT_ACCESSIBLE
StructureException.getItem()
.public static final StructureErrors SUBSCRIPTION_NOT_EXISTS_OR_NOT_ACCESSIBLE
AttributeSubscriptionService
public static final StructureErrors INVALID_FOREST_OPERATION
public static final StructureErrors UNSUPPORTED_FOREST_SOURCE_OPERATION
ForestSource
— for example, trying to make changes on a read-only
source. The error cannot be fixed on the same forest source.public static final StructureErrors UNAVAILABLE_MODULE
public static final StructureErrors MODULE_ERROR
public static final StructureErrors SIGNATURE_MISMATCH
public static final StructureErrors AUTOMATION_FAILED
public static final StructureErrors CONSISTENT_OPERATION_FAILED
public static final StructureErrors SAVED_COLUMN_NOT_EXISTS_OR_NOT_ACCESSIBLE
public static final StructureErrors SAVED_COLUMN_MANAGEMENT_DENIED
public static final StructureErrors NOTE_NOT_EXISTS_OR_NOT_ACCESSIBLE
public static final StructureErrors NOTE_EDIT_DENIED
public static StructureErrors[] values()
for (StructureErrors c : StructureErrors.values()) System.out.println(c);
public static StructureErrors 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 getCode()
StructureError
getCode
in interface StructureError
public StructureErrorCategory getCategory()
StructureError
getCategory
in interface StructureError
public String toString()
toString
in class Enum<StructureErrors>
Copyright © 2024 Tempo Software. All Rights Reserved.