public enum LocalDBAlert extends Enum<LocalDBAlert>
| Enum Constant and Description |
|---|
BatchException |
BatchMaxCapacity |
BatchRollbackException |
ConfigurationPersistenceException |
WrongStatePersistence |
| Modifier and Type | Method and Description |
|---|---|
LocalDBAlert |
addData(String key,
Object o)
Adds data to the Alert.
|
org.lsst.ccs.bus.data.Alert |
getAlert(String prefix,
Exception ex)
Generates the actual
Alert object. |
static String |
getFirstException(Exception ex)
An utility that returns the original cause of an exception.
|
String |
getId() |
static LocalDBAlert |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocalDBAlert[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalDBAlert BatchException
public static final LocalDBAlert BatchRollbackException
public static final LocalDBAlert BatchMaxCapacity
public static final LocalDBAlert ConfigurationPersistenceException
public static final LocalDBAlert WrongStatePersistence
public static LocalDBAlert[] values()
for (LocalDBAlert c : LocalDBAlert.values()) System.out.println(c);
public static LocalDBAlert 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 String getId()
public LocalDBAlert addData(String key, Object o)
key - o - public org.lsst.ccs.bus.data.Alert getAlert(String prefix, Exception ex)
Alert object.prefix - a prefix to add to the alertId.ex - an exceptionCopyright © 2021 LSST. All rights reserved.