public enum OErrorCode extends Enum<OErrorCode>
Enum Constant and Description |
---|
BACKUP_IN_PROGRESS |
GENERIC_ERROR |
MVCC_ERROR |
QUERY_PARSE_ERROR |
VALIDATION_ERROR |
Modifier and Type | Field and Description |
---|---|
protected OErrorCategory |
category |
protected int |
code |
protected String |
description |
protected Class<? extends OException> |
exceptionClass |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static OErrorCode |
getErrorCode(int code) |
OException |
newException(String message,
Throwable parent) |
void |
throwException() |
void |
throwException(String message) |
void |
throwException(String message,
Throwable parent) |
void |
throwException(Throwable parent) |
static OErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OErrorCode QUERY_PARSE_ERROR
public static final OErrorCode BACKUP_IN_PROGRESS
public static final OErrorCode MVCC_ERROR
public static final OErrorCode VALIDATION_ERROR
public static final OErrorCode GENERIC_ERROR
protected final OErrorCategory category
protected final int code
protected final String description
protected final Class<? extends OException> exceptionClass
public static OErrorCode[] values()
for (OErrorCode c : OErrorCode.values()) System.out.println(c);
public static OErrorCode 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()
public void throwException()
public void throwException(String message)
public void throwException(Throwable parent)
public OException newException(String message, Throwable parent)
public static OErrorCode getErrorCode(int code)
Copyright © 2009–2020 OrientDB. All rights reserved.