public class Warning extends RuntimeException
RuntimeException that allows an error to be treated as a Warning rather than an error.Continue but this is a RutimeException unlike a checked Exception and one can also set the severeity.| Constructor and Description |
|---|
Warning(Object payload,
int severe) |
Warning(String s,
int severe) |
Warning(String s,
Object payload,
int severe) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getPayload()
An optional payload that maybe passed like a Return
|
int |
getSevere()
Higher the value, the more the severe
|
void |
setSevere(int severe)
Higher the value, the more the severe
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected Object payload
public Warning(Object payload, int severe)
public Warning(String s, int severe)
public Object getPayload()
public int getSevere()
public void setSevere(int severe)
Copyright © 2018. All rights reserved.