JavaException.h++

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------
00002    commonc++ - A C++ Common Class Library
00003    Copyright (C) 2005-2012  Mark A Lindner
00004 
00005    This file is part of commonc++.
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public
00018    License along with this library; if not, write to the Free
00019    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020    ---------------------------------------------------------------------------
00021 */
00022 
00023 #ifndef __ccxx_JavaException_hxx
00024 #define __ccxx_JavaException_hxx
00025 
00026 #include <commonc++/Common.h++>
00027 #include <commonc++/Exception.h++>
00028 
00029 namespace ccxx {
00030 
00036 class COMMONCPPJVM_API JavaException : public Exception
00037 {
00038   public:
00039 
00041   JavaException(String message = String::empty);
00042 
00043   inline virtual void write(std::ostream& stream) const
00044   { _write(stream, "JavaException"); }
00045 };
00046 
00051 class COMMONCPPJVM_API JavaSignatureException : public JavaException
00052 {
00053   public:
00054 
00055   JavaSignatureException(String message = String::empty);
00056 
00057   inline void write(std::ostream& stream) const
00058   { _write(stream, "JavaSignatureException"); }
00059 };
00060 
00066 class COMMONCPPJVM_API JavaClassNotFoundException : public JavaException
00067 {
00068   public:
00069 
00070   JavaClassNotFoundException(String message = String::empty);
00071 
00072   inline void write(std::ostream& stream) const
00073   { _write(stream, "JavaClassNotFoundException"); }
00074 };
00075 
00082 class COMMONCPPJVM_API JavaMethodNotFoundException : public JavaException
00083 {
00084   public:
00085 
00086   JavaMethodNotFoundException(String message = String::empty);
00087 
00088   inline void write(std::ostream& stream) const
00089   { _write(stream, "JavaMethodNotFoundException"); }
00090 };
00091 
00098 class COMMONCPPJVM_API JavaFieldNotFoundException : public JavaException
00099 {
00100   public:
00101 
00102   JavaFieldNotFoundException(String message = String::empty);
00103 
00104   inline void write(std::ostream& stream) const
00105   { _write(stream, "JavaFieldNotFoundException"); }
00106 };
00107 
00114 class COMMONCPPJVM_API JavaInstantiationException : public JavaException
00115 {
00116   public:
00117 
00118   JavaInstantiationException(String message = String::empty);
00119 
00120   inline void write(std::ostream& stream) const
00121   { _write(stream, "JavaInstantiationException"); }
00122 };
00123 
00130 class COMMONCPPJVM_API JavaInvocationException : public JavaException
00131 {
00132   public:
00133 
00134   JavaInvocationException(String message = String::empty);
00135 
00136   inline void write(std::ostream& stream) const
00137   { _write(stream, "JavaInvocationException"); }
00138 };
00139 
00145 class COMMONCPPJVM_API JavaFieldAccessException : public JavaException
00146 {
00147   public:
00148 
00149   JavaFieldAccessException(String message = String::empty);
00150 
00151   inline void write(std::ostream& stream) const
00152   { _write(stream, "JavaFieldAccessException"); }
00153 };
00154 
00161 class COMMONCPPJVM_API JavaArrayAccessException : public JavaException
00162 {
00163   public:
00164 
00165   JavaArrayAccessException(String message = String::empty);
00166 
00167   inline void write(std::ostream& stream) const
00168   { _write(stream, "JavaArrayAccessException"); }
00169 };
00170 
00177 class COMMONCPPJVM_API JavaOutOfMemoryException : public JavaException
00178 {
00179   public:
00180 
00181   JavaOutOfMemoryException(String message = String::empty);
00182 
00183   inline void write(std::ostream& stream) const
00184   { _write(stream, "JavaOutOfMemoryException"); }
00185 };
00186 
00192 class COMMONCPPJVM_API JavaMonitorException : public JavaException
00193 {
00194   public:
00195 
00196   JavaMonitorException(String message = String::empty);
00197 
00198   inline void write(std::ostream& stream) const
00199   { _write(stream, "JavaMonitorException"); }
00200 };
00201 
00208 class COMMONCPPJVM_API JavaThreadException : public JavaException
00209 {
00210   public:
00211 
00212   JavaThreadException(String message = String::empty);
00213 
00214   inline void write(std::ostream& stream) const
00215   { _write(stream, "JavaThreadException"); }
00216 };
00217 
00224 class COMMONCPPJVM_API JavaNotAttachedException : public JavaException
00225 {
00226   public:
00227 
00228   JavaNotAttachedException(String message = String::empty);
00229 
00230   inline void write(std::ostream& stream) const
00231   { _write(stream, "JavaNotAttachedException"); }
00232 };
00233 
00234 }; // namespace ccxx
00235 
00236 #endif // __ccxx_JavaException_hxx
00237 
00238 /* end of header file */
Generated on Sat Nov 26 16:49:07 2011 for libcommonc++ by  doxygen 1.6.3