View Javadoc
1 /*** 2 * InvalidClassFileException.java 3 * 4 * Project: Dependency Tool 5 * 6 * WHEN WHO WHAT 7 * 06.06.2003 pko initial public release 8 * 22.01.2002 ctr modification 9 * 11.12.2001 ctr creation 10 * 11 * Copyright 2003 ELCA Informatique SA 12 * Av. de la Harpe 22-24, 1000 Lausanne 13, Switzerland 13 * www.elca.ch 14 * 15 * This library is free software; you can redistribute it and/or 16 * modify it under the terms of the GNU Lesser General Public License 17 * as published by the Free Software Foundation; either version 2.1 of 18 * the License, or (at your option) any later version. 19 * 20 * This library is distributed in the hope that it will be useful, but 21 * WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 23 * Lesser General Public License for more details. 24 * 25 * You should have received a copy of the GNU Lesser General Public 26 * License along with this library; if not, write to the Free Software 27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 28 * USA 29 */ 30 31 package ch.elca.dependency.exception; 32 33 /*** 34 * Exception that is thrown if the .class file could not properly read 35 * or if there was a problem with the initialisation. This exception 36 * occurs if there is no possibility to read a specific class 37 * file. There can be problems with the class file itself or even with 38 * the <code>FileInputStream</code>. There is no way to recover the 39 * error during the runtime by the user. So the application has to be 40 * stopped or the corrupt class file has to be skipped. 41 * 42 * @author Christoph Trutmann 43 * @version 1.0-beta 44 */ 45 public class InvalidClassFileException extends Exception { 46 47 /*** 48 * Standard message string. 49 */ 50 private String m_message = "The class is not valid."; 51 52 /*** 53 * Constructor - without argument. 54 */ 55 public InvalidClassFileException() { 56 } 57 58 /*** 59 * Constructor - with specified message string. 60 * 61 * @param message Message for explaining the exception. 62 */ 63 public InvalidClassFileException(String message){ 64 super(message); 65 } 66 67 /*** 68 * Gets the message of this exception. 69 * 70 * @return Message string describing this exception. 71 */ 72 public String getMessage() { 73 if(super.getMessage() == null) { 74 return m_message; 75 } else { 76 return m_message + "\n" + super.getMessage(); 77 } 78 } 79 }

This page was automatically generated by Maven