public enum LogSeverity extends java.lang.Enum<LogSeverity>
Enum Constant and Description |
---|
ERROR
A log entry type denoting an error in a job.
|
NOTICE
A log entry type that conveys information about an executing job.
|
WARNING
A log entry type that warns of potential problems in a job.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Retrieve the integer representation of the severity.
|
static LogSeverity |
valueOf(int severity)
Return the severity that corresponds to the given integer.
|
static LogSeverity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogSeverity NOTICE
public static final LogSeverity WARNING
public static final LogSeverity ERROR
public static LogSeverity[] values()
for (LogSeverity c : LogSeverity.values()) System.out.println(c);
public static LogSeverity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static LogSeverity valueOf(int severity)
severity
- The integer representation of this severity.LogSeverity
.java.lang.IllegalArgumentException
- when the given severity
does not correspond to a valid LogSeverity
.Copyright © 2012 SAS Institute Inc. All Rights Reserved.