uk.org.ogsadai.activity.files.regexp
Class RegexpException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.org.ogsadai.activity.files.regexp.RegexpException
All Implemented Interfaces:
java.io.Serializable

public class RegexpException
extends java.lang.Exception

Wrapper class for exceptions which may arise from classes dealing with regular expressions.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Constructor Summary
RegexpException(int num, org.apache.log4j.Logger logger)
          Construct a new exception, based on a particular message from the message bundle.
RegexpException(int num, java.lang.Object[] params, org.apache.log4j.Logger logger)
          Construct a new exception, based on a particular message from the message bundle.
 
Method Summary
 org.apache.log4j.Logger getLogger()
          Return the logger object.
 java.lang.String getMessage()
          Return the exception's message in the default language.
 int getNum()
          Return the index of the message number.
 java.lang.Object[] getParams()
          Return the parameters of this message.
 java.lang.String toString()
          Return a string representation of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexpException

public RegexpException(int num,
                       java.lang.Object[] params,
                       org.apache.log4j.Logger logger)
Construct a new exception, based on a particular message from the message bundle.

Parameters:
num - the index of the message in the message bundle
params - the parameters of the message
logger - the logger object to log this exception to

RegexpException

public RegexpException(int num,
                       org.apache.log4j.Logger logger)
Construct a new exception, based on a particular message from the message bundle.

Parameters:
num - the index of the message in the message bundle
logger - the logger object to log this exception to
Method Detail

getMessage

public java.lang.String getMessage()
Return the exception's message in the default language.

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Return a string representation of this exception. For debugging purposes only.

Overrides:
toString in class java.lang.Throwable

getLogger

public org.apache.log4j.Logger getLogger()
Return the logger object.

Returns:
the logger object

getNum

public int getNum()
Return the index of the message number.

Returns:
the message number

getParams

public java.lang.Object[] getParams()
Return the parameters of this message.

Returns:
the parameters