Constructor and Description |
---|
Warning(String message)
Creates a new warning.
|
Warning(String message,
Integer code)
Creates a new warning.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getCode()
Gets the warning code.
|
String |
getMessage()
Gets the warning message
|
static Warning |
parse(int code,
Object... args)
Creates a parser warning.
|
String |
toString() |
static Warning |
validate(int code,
Object... args)
Creates a validation warning.
|
public Warning(String message)
message
- the warning messagepublic static Warning parse(int code, Object... args)
code
- the message codeargs
- the message argumentspublic static Warning validate(int code, Object... args)
code
- the message codeargs
- the message argumentspublic Integer getCode()
public String getMessage()
Copyright © 2013-2015 Michael Angstadt. All Rights Reserved.