Category (enum)

Categorises each exception that has been recognised, as per Recognition#getCategory() .

API

Category.java
enum Category {
  CONSTRAINT_VIOLATION     (1)
  NOT_FOUND     (2)
  CONCURRENCY     (3)
  RETRYABLE     (4)
  RECOVERABLE     (5)
  SERVER_ERROR     (6)
  OTHER     (7)
  boolean isSuppressCategoryInUI()     (8)
}
1 CONSTRAINT_VIOLATION

A violation of some declarative constraint (eg uniqueness or referential integrity) was detected.

2 NOT_FOUND

The object to be acted upon cannot be found (404)

3 CONCURRENCY

A concurrency exception, in other words some other user has changed this object.

4 RETRYABLE

A previously failed operation might be able to succeed when the operation is retried. (eg. a query timeout or a temporary failure)

5 RECOVERABLE

Corresponds to RecoverableException .

6 SERVER_ERROR

50x error

7 OTHER

Recognized, but uncategorized (typically: a recognizer of the original ExceptionRecognizer API).

8 isSuppressCategoryInUI()

[CAUSEWAY-2419] for a consistent user experience with action dialog validation messages, be less verbose (suppress the category) if its a Category.CONSTRAINT_VIOLATION.

Members

CONSTRAINT_VIOLATION

A violation of some declarative constraint (eg uniqueness or referential integrity) was detected.

NOT_FOUND

The object to be acted upon cannot be found (404)

CONCURRENCY

A concurrency exception, in other words some other user has changed this object.

RETRYABLE

A previously failed operation might be able to succeed when the operation is retried. (eg. a query timeout or a temporary failure)

RECOVERABLE

Corresponds to RecoverableException .

SERVER_ERROR

50x error

OTHER

Recognized, but uncategorized (typically: a recognizer of the original ExceptionRecognizer API).

isSuppressCategoryInUI()

[CAUSEWAY-2419] for a consistent user experience with action dialog validation messages, be less verbose (suppress the category) if its a Category.CONSTRAINT_VIOLATION.