[5472] | 1 | /* |
---|
| 2 | * SeriousCondition.java |
---|
| 3 | * |
---|
[9465] | 4 | * Copyright (C) 2004-2005 Peter Graves |
---|
[11297] | 5 | * $Id: SeriousCondition.java 12288 2009-11-29 22:00:12Z vvoutilainen $ |
---|
[5472] | 6 | * |
---|
| 7 | * This program is free software; you can redistribute it and/or |
---|
| 8 | * modify it under the terms of the GNU General Public License |
---|
| 9 | * as published by the Free Software Foundation; either version 2 |
---|
| 10 | * of the License, or (at your option) any later version. |
---|
| 11 | * |
---|
| 12 | * This program is distributed in the hope that it will be useful, |
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | * GNU General Public License for more details. |
---|
| 16 | * |
---|
| 17 | * You should have received a copy of the GNU General Public License |
---|
| 18 | * along with this program; if not, write to the Free Software |
---|
| 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
[11391] | 20 | * |
---|
| 21 | * As a special exception, the copyright holders of this library give you |
---|
| 22 | * permission to link this library with independent modules to produce an |
---|
| 23 | * executable, regardless of the license terms of these independent |
---|
| 24 | * modules, and to copy and distribute the resulting executable under |
---|
| 25 | * terms of your choice, provided that you also meet, for each linked |
---|
| 26 | * independent module, the terms and conditions of the license of that |
---|
| 27 | * module. An independent module is a module which is not derived from |
---|
| 28 | * or based on this library. If you modify this library, you may extend |
---|
| 29 | * this exception to your version of the library, but you are not |
---|
| 30 | * obligated to do so. If you do not wish to do so, delete this |
---|
| 31 | * exception statement from your version. |
---|
[5472] | 32 | */ |
---|
| 33 | |
---|
| 34 | package org.armedbear.lisp; |
---|
| 35 | |
---|
[12288] | 36 | import static org.armedbear.lisp.Lisp.*; |
---|
| 37 | |
---|
[5472] | 38 | public class SeriousCondition extends Condition |
---|
| 39 | { |
---|
[12254] | 40 | public SeriousCondition() |
---|
[5472] | 41 | { |
---|
| 42 | } |
---|
| 43 | |
---|
[12254] | 44 | protected SeriousCondition(LispClass cls) |
---|
[9465] | 45 | { |
---|
| 46 | super(cls); |
---|
| 47 | } |
---|
| 48 | |
---|
[12254] | 49 | public SeriousCondition(LispObject initArgs) |
---|
[5472] | 50 | { |
---|
| 51 | super(initArgs); |
---|
| 52 | } |
---|
| 53 | |
---|
[11488] | 54 | @Override |
---|
[12254] | 55 | protected void initialize(LispObject initArgs) |
---|
[9484] | 56 | { |
---|
| 57 | super.initialize(initArgs); |
---|
| 58 | } |
---|
| 59 | |
---|
[5472] | 60 | public SeriousCondition(String message) |
---|
| 61 | { |
---|
| 62 | super(message); |
---|
| 63 | } |
---|
| 64 | |
---|
[11488] | 65 | @Override |
---|
[5472] | 66 | public LispObject typeOf() |
---|
| 67 | { |
---|
| 68 | return Symbol.SERIOUS_CONDITION; |
---|
| 69 | } |
---|
| 70 | |
---|
[11488] | 71 | @Override |
---|
[7968] | 72 | public LispObject classOf() |
---|
[5472] | 73 | { |
---|
[9482] | 74 | return StandardClass.SERIOUS_CONDITION; |
---|
[5472] | 75 | } |
---|
| 76 | |
---|
[11488] | 77 | @Override |
---|
[12254] | 78 | public LispObject typep(LispObject type) |
---|
[5472] | 79 | { |
---|
| 80 | if (type == Symbol.SERIOUS_CONDITION) |
---|
| 81 | return T; |
---|
[9482] | 82 | if (type == StandardClass.SERIOUS_CONDITION) |
---|
[5472] | 83 | return T; |
---|
| 84 | return super.typep(type); |
---|
| 85 | } |
---|
| 86 | } |
---|