public interface IStatus extends Serializable
OK,
WARN and ERROR should fulfil a validation status.| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR |
static int |
OK |
static IStatus |
STATUS_OK
simple ok status. should be used if you have a status without warnings and errors
|
static String[] |
TAG
status names
|
static int |
WARN |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
error()
if an error occurred, the exception will be returned, otherwise null
|
String |
message()
if a status has an error or a warning, the message will be returned -otherwise it returns null
|
boolean |
ok()
returns true, if a status has no warnings or errors
|
static final int OK
static final int WARN
static final int ERROR
static final String[] TAG
static final IStatus STATUS_OK
Copyright © 2012–2018. All rights reserved.