/* Generated automatically by jlpp - do not edit. */ #line 1 "lang/Exception.jlc" // -*- c++ -*- /* * Jakelib2 - General purpose C++ library * Copyright (C) 2001 Florian Wolff (florian@donuz.de) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: Exception.jlc,v 1.6 2003/10/07 17:42:10 florian Exp $ */ #include "jakelib2.h" #include "jakelib2/lang/Exception.h" using namespace jakelib::lang; JAKELIB_IMPLEMENT_CLASS("jakelib.lang.Exception", Exception, Object); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.NullPointerException", NullPointerException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.IllegalArgumentException", IllegalArgumentException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.IndexOutOfBoundsException", IndexOutOfBoundsException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.ArrayIndexOutOfBoundsException", ArrayIndexOutOfBoundsException, IndexOutOfBoundsException); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.StringIndexOutOfBoundsException", StringIndexOutOfBoundsException, IndexOutOfBoundsException); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.MemoryException", MemoryException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.MissingResourceException", MissingResourceException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.ConcurrentModificationException", ConcurrentModificationException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.IllegalThreadStateException", IllegalThreadStateException, IllegalArgumentException); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.IllegalMonitorStateException", IllegalMonitorStateException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.UnsupportedOperationException", UnsupportedOperationException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.NoSuchElementException", NoSuchElementException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.NumberFormatException", NumberFormatException, IllegalArgumentException); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.IllegalStateException", IllegalStateException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.CloneNotSupportedException", CloneNotSupportedException, Exception); JAKELIB_IMPLEMENT_CLASS("jakelib.lang.InterruptedException", InterruptedException, Exception); // "\n at " jchar chars_jakelib2_exception_0001[] = {10,32,32,32,32,32,97,116,32}; jakelib::lang::String* jakelib2_exception_0001; // "(" jchar chars_jakelib2_exception_0002[] = {40}; jakelib::lang::String* jakelib2_exception_0002; // ":" jchar chars_jakelib2_exception_0003[] = {58}; jakelib::lang::String* jakelib2_exception_0003; // ")" jchar chars_jakelib2_exception_0004[] = {41}; jakelib::lang::String* jakelib2_exception_0004; /*****************************************************************************\ * Exception | *****************************************************************************/ Exception::Exception(String* msg) : Throwable(msg) {} /*****************************************************************************\ * initExceptionClass | *****************************************************************************/ void Exception::initExceptionClass() { jakelib2_exception_0001 = new jakelib::lang::String(chars_jakelib2_exception_0001, 0, 9); jakelib2_exception_0002 = new jakelib::lang::String(chars_jakelib2_exception_0002, 0, 1); jakelib2_exception_0003 = new jakelib::lang::String(chars_jakelib2_exception_0003, 0, 1); jakelib2_exception_0004 = new jakelib::lang::String(chars_jakelib2_exception_0004, 0, 1); } /*****************************************************************************\ * IndexOutOfBoundsException | *****************************************************************************/ IndexOutOfBoundsException::IndexOutOfBoundsException(String* msg) : Exception(msg) {} /*****************************************************************************\ * ArrayIndexOutOfBoundsException | *****************************************************************************/ ArrayIndexOutOfBoundsException::ArrayIndexOutOfBoundsException(String* msg) : IndexOutOfBoundsException(msg) {} /*****************************************************************************\ * StringIndexOutOfBoundsException | *****************************************************************************/ StringIndexOutOfBoundsException::StringIndexOutOfBoundsException(String* msg) : IndexOutOfBoundsException(msg) {} /*****************************************************************************\ * IllegalArgumentException | *****************************************************************************/ IllegalArgumentException::IllegalArgumentException(String* msg) : Exception(msg) {} /*****************************************************************************\ * MemoryException | *****************************************************************************/ MemoryException::MemoryException(String* msg) : Exception(msg) {} /*****************************************************************************\ * MissingResourceException | *****************************************************************************/ MissingResourceException::MissingResourceException(String* msg) : Exception(msg) {} /*****************************************************************************\ * ConcurrentModificationException | *****************************************************************************/ ConcurrentModificationException::ConcurrentModificationException(String* msg) : Exception(msg) {} /*****************************************************************************\ * NullPointerException | *****************************************************************************/ NullPointerException::NullPointerException(String* msg) : Exception(msg) {} /*****************************************************************************\ * IllegalThreadStateException | *****************************************************************************/ IllegalThreadStateException::IllegalThreadStateException(String* msg) : IllegalArgumentException(msg) {} /*****************************************************************************\ * IllegalMonitorStateException | *****************************************************************************/ IllegalMonitorStateException::IllegalMonitorStateException(String* msg) : Exception(msg) {} /*****************************************************************************\ * UnsupportedOperationException | *****************************************************************************/ UnsupportedOperationException::UnsupportedOperationException(String* msg) : Exception(msg) {} /*****************************************************************************\ * NoSuchElementException | *****************************************************************************/ NoSuchElementException::NoSuchElementException(String* msg) : Exception(msg) {} /*****************************************************************************\ * NumberFormatException | *****************************************************************************/ NumberFormatException::NumberFormatException(String* msg) : IllegalArgumentException(msg) {} /*****************************************************************************\ * IllegalStateException | *****************************************************************************/ IllegalStateException::IllegalStateException(String* msg) : Exception(msg) {} /*****************************************************************************\ * CloneNotSupportedException | *****************************************************************************/ CloneNotSupportedException::CloneNotSupportedException(String *msg) : Exception(msg) {} /*****************************************************************************\ * InterruptedException | *****************************************************************************/ InterruptedException::InterruptedException(String *msg) : Exception(msg) {}