mcatan 2004/04/02 00:37:14
Modified: include/log4cxx/helpers exception.h
Log:
added NullPointerException
Revision Changes Path
1.8 +15 -4 logging-log4cxx/include/log4cxx/helpers/exception.h
Index: exception.h
===================================================================
RCS file: /home/cvs/logging-log4cxx/include/log4cxx/helpers/exception.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- exception.h 28 Feb 2004 15:10:23 -0000 1.7
+++ exception.h 2 Apr 2004 08:37:14 -0000 1.8
@@ -47,16 +47,27 @@
RuntimeException() {}
RuntimeException(const String& message)
: Exception(message) {}
- }; // class Exception
+ }; // class RuntimeException
+
+ /** Thrown when an application attempts to use null in a case
where an
+ object is required.
+ */
+ class LOG4CXX_EXPORT NullPointerException : public
RuntimeException
+ {
+ public:
+ NullPointerException() {}
+ NullPointerException(const String& message)
+ : RuntimeException(message) {}
+ }; // class NullPointerException
/** Thrown to indicate that a method has been passed
an illegal or inappropriate argument.*/
- class LOG4CXX_EXPORT IllegalArgumentException : public Exception
+ class LOG4CXX_EXPORT IllegalArgumentException : public
RuntimeException
{
public:
IllegalArgumentException(const String& message)
- : Exception(message) {}
- };
+ : RuntimeException(message) {}
+ }; // class IllegalArgumentException
/** Signals that an I/O exception of some sort has occurred.
This class
is the general class of exceptions produced by failed or
interrupted