|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.talend.esb.sam.common.event.MonitoringException
public class MonitoringException
The Class MonitoringException describes the monitoring exception.
| Constructor Summary | |
|---|---|
MonitoringException(String code,
String message,
Throwable t)
Instantiates a new monitoring exception. |
|
MonitoringException(String code,
String message,
Throwable t,
Event event)
Instantiates a new monitoring exception. |
|
MonitoringException(String code,
String message,
Throwable t,
List<Event> events)
Instantiates a new monitoring exception. |
|
| Method Summary | |
|---|---|
void |
addEvent(Event event)
Adds the event. |
void |
addEvents(Collection<Event> eventCollection)
Adds the events. |
String |
getCode()
Gets the code. |
String |
getMessage()
|
void |
logException(Level level)
Prints the error message as log message. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MonitoringException(String code,
String message,
Throwable t)
code - the codemessage - the messaget - the Trowable type for exeption definition
public MonitoringException(String code,
String message,
Throwable t,
Event event)
code - the monitoring exception codemessage - the messaget - Trowable type for exeption definitionevent - the event
public MonitoringException(String code,
String message,
Throwable t,
List<Event> events)
code - the monitoring exception codemessage - the messaget - Trowable type for exeption definitionevents - the events| Method Detail |
|---|
public String getCode()
public String getMessage()
getMessage in class Throwablepublic void logException(Level level)
level - the log levelpublic void addEvent(Event event)
event - the eventpublic void addEvents(Collection<Event> eventCollection)
eventCollection - the event collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||