001/* jpvmException.java 002 * 003 * A throwable class representing a jpvm run-time error. 004 * 005 * Adam J Ferrari 006 * Sat 05-25-1996 007 * 008 * Copyright (C) 1996 Adam J Ferrari 009 * 010 * This library is free software; you can redistribute it and/or 011 * modify it under the terms of the GNU Library General Public 012 * License as published by the Free Software Foundation; either 013 * version 2 of the License, or (at your option) any later version. 014 * 015 * This library is distributed in the hope that it will be useful, 016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 018 * Library General Public License for more details. 019 * 020 * You should have received a copy of the GNU Library General Public 021 * License along with this library; if not, write to the 022 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 023 * MA 02139, USA. 024 */ 025 026package jpvm; 027 028public 029class jpvmException extends Throwable { 030 private String val; 031 032 public jpvmException() { 033 val = "jpvm error: unknown error."; 034 } 035 036 public jpvmException(String str) { 037 val = new String("jpvm error: "+str); 038 } 039 040 public String toString() { 041 return new String(val); 042 } 043};