ErrorMessages now set the notice flag to true.
This commit is contained in:
parent
1ea99bc622
commit
614e45ab63
2 changed files with 1 additions and 9 deletions
|
@ -42,5 +42,6 @@ public class ErrorMessage extends Message {
|
||||||
public ErrorMessage(String message) {
|
public ErrorMessage(String message) {
|
||||||
this.setMessage(message);
|
this.setMessage(message);
|
||||||
this.setError(true);
|
this.setError(true);
|
||||||
|
this.setNotice(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,13 +115,4 @@ public class Message {
|
||||||
public void setNotice(boolean isNotice) {
|
public void setNotice(boolean isNotice) {
|
||||||
this.isNotice = isNotice;
|
this.isNotice = isNotice;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns <code>true</code> if the message is an error or a notice.
|
|
||||||
*
|
|
||||||
* @return <code>true</code> or <code>false</code>
|
|
||||||
*/
|
|
||||||
public boolean isNoticeOrError() {
|
|
||||||
return (isNotice || isError);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue