net.sourceforge.buildmonitor
Class MonitoringException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sourceforge.buildmonitor.MonitoringException
All Implemented Interfaces:
java.io.Serializable

public class MonitoringException
extends java.lang.Exception

Exception that signal an error that occurs during the monitoring of a build

Author:
sbrunot
See Also:
Serialized Form

Constructor Summary
MonitoringException(java.lang.String theMessage, boolean isOptionsRelated, java.net.URI theRelatedURI)
          Create a new instance of the exception.
MonitoringException(java.lang.String theMessage, java.lang.Throwable theCause, boolean isOptionsRelated, java.net.URI theRelatedURI)
          Create a new instance of the exception.
MonitoringException(java.lang.String theMessage, java.lang.Throwable theCause, java.net.URI theRelatedURI)
          Create a new instance of the exception not related to a bad option (user parameter) of the monitor.
MonitoringException(java.lang.String theMessage, java.net.URI theRelatedURI)
          Create a new instance of the exception not related to a bad option (user parameter) of the monitor.
MonitoringException(java.lang.Throwable theCause, boolean isOptionsRelated, java.net.URI theRelatedURI)
          Create a new instance of the exception.
MonitoringException(java.lang.Throwable theCause, java.net.URI theRelatedURI)
          Create a new instance of the exception not related to a bad option (user parameter) of the monitor.
 
Method Summary
 java.lang.String getMessage()
          
 java.net.URI getRelatedURI()
          Get an URI that can be openend by the end user to resolve the problem (null if not available)
 boolean isOptionsRelated()
          Is this error related to a bad option (user parameter) of the monitor ?
 
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(java.lang.String theMessage,
                           java.lang.Throwable theCause,
                           java.net.URI theRelatedURI)
Create a new instance of the exception not related to a bad option (user parameter) of the monitor.

Parameters:
theMessage - the message that explains the exception
theCause - the cause of the exception
theRelatedURI - an URI that could be opened in a browser by the end user to resolve the problem.

MonitoringException

public MonitoringException(java.lang.String theMessage,
                           java.net.URI theRelatedURI)
Create a new instance of the exception not related to a bad option (user parameter) of the monitor.

Parameters:
theMessage - the message that explains the exception
theRelatedURI - an URI that could be opened in a browser by the end user to resolve the problem.

MonitoringException

public MonitoringException(java.lang.Throwable theCause,
                           java.net.URI theRelatedURI)
Create a new instance of the exception not related to a bad option (user parameter) of the monitor.

Parameters:
theCause - the cause of the exception
theRelatedURI - an URI that could be opened in a browser by the end user to resolve the problem.

MonitoringException

public MonitoringException(java.lang.String theMessage,
                           java.lang.Throwable theCause,
                           boolean isOptionsRelated,
                           java.net.URI theRelatedURI)
Create a new instance of the exception.

Parameters:
theMessage - the message that explains the exception
theCause - the cause of the exception
isOptionsRelated - a boolean that signal if the error is related to a bad option of the monitor
theRelatedURI - if isOptionsRelated is false, an URI that could be opened in a browser by the end user to resolve the problem.

MonitoringException

public MonitoringException(java.lang.String theMessage,
                           boolean isOptionsRelated,
                           java.net.URI theRelatedURI)
Create a new instance of the exception.

Parameters:
theMessage - the message that explains the exception
isOptionsRelated - a boolean that signal if the error is related to a bad
theRelatedURI - if isOptionsRelated is false, an URI that could be opened in a browser by the end user to resolve the problem.

MonitoringException

public MonitoringException(java.lang.Throwable theCause,
                           boolean isOptionsRelated,
                           java.net.URI theRelatedURI)
Create a new instance of the exception.

Parameters:
theCause - the cause of the exception
isOptionsRelated - a boolean that signal if the error is related to a bad
theRelatedURI - if isOptionsRelated is false, an URI that could be opened in a browser by the end user to resolve the problem.
Method Detail

getMessage

public java.lang.String getMessage()

Overrides:
getMessage in class java.lang.Throwable

isOptionsRelated

public boolean isOptionsRelated()
Is this error related to a bad option (user parameter) of the monitor ?

Returns:
true if the error is related to a bad option, false otherwise

getRelatedURI

public java.net.URI getRelatedURI()
Get an URI that can be openend by the end user to resolve the problem (null if not available)

Returns:
an URI that can be openend by the end user to resolve the problem, or null


Copyright © 2007. All Rights Reserved.