org.talend.esb.sam.common.event
Class MonitoringException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.talend.esb.sam.common.event.MonitoringException
All Implemented Interfaces:
Serializable

public class MonitoringException
extends RuntimeException

See Also:
Serialized Form

Constructor Summary
MonitoringException(String code, String message, Throwable t)
           
MonitoringException(String code, String message, Throwable t, Event event)
           
MonitoringException(String code, String message, Throwable t, List<Event> events)
           
 
Method Summary
 void addEvent(Event event)
           
 void addEvents(Collection<Event> eventCollection)
           
 String getCode()
           
 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

MonitoringException

public MonitoringException(String code,
                           String message,
                           Throwable t)

MonitoringException

public MonitoringException(String code,
                           String message,
                           Throwable t,
                           Event event)

MonitoringException

public MonitoringException(String code,
                           String message,
                           Throwable t,
                           List<Event> events)
Method Detail

getCode

public String getCode()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

logException

public void logException(Level level)
Prints the error message as log message

Parameters:
e -

addEvent

public void addEvent(Event event)

addEvents

public void addEvents(Collection<Event> eventCollection)


Copyright © 2011 Talend Inc.. All Rights Reserved.