org.altlinux.jabbix
Class JabbixException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.altlinux.jabbix.JabbixException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JabbixProtocolException, NoSuchMetricException, UnknownCommandException

public class JabbixException
extends Exception

An exception indicating the general unexpected case in a working Jabbix program.

Author:
Paul Wolneykien
See Also:
Serialized Form

Field Summary
static String ERROR_TAG
          The textual string indicating the error code of the exception in accordance with the Zabbix protocol.
 
Constructor Summary
JabbixException(String msg)
          Creates an exception object with the specified message.
JabbixException(Throwable t)
          Creates an exception object with the specified cause.
 
Method Summary
 String getErrorTag()
          Returns the textual string indicating the error code of the exception in accordance with the Zabbix protocol.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_TAG

public static String ERROR_TAG
The textual string indicating the error code of the exception in accordance with the Zabbix protocol.

Constructor Detail

JabbixException

public JabbixException(String msg)
Creates an exception object with the specified message.

Parameters:
msg - the exception comment

JabbixException

public JabbixException(Throwable t)
Creates an exception object with the specified cause.

Parameters:
t - the exception cause
Method Detail

getErrorTag

public String getErrorTag()
Returns the textual string indicating the error code of the exception in accordance with the Zabbix protocol.

Returns:
the textual string indicating the error code