public class MonitoringException extends RuntimeException
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MonitoringException(String code, String message, Throwable t)
code - the codemessage - the messaget - the Trowable type for exeption definitionpublic MonitoringException(String code, String message, Throwable t, Event event)
code - the monitoring exception codemessage - the messaget - Trowable type for exeption definitionevent - the eventpublic 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 collectionCopyright © 2011–2015 Talend Inc.. All rights reserved.