Changeset 9944


Ignore:
Timestamp:
09/08/05 16:12:06 (16 years ago)
Author:
piso
Message:

getMessage()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/SimpleTypeError.java

    r9486 r9944  
    33 *
    44 * Copyright (C) 2002-2005 Peter Graves
    5  * $Id: SimpleTypeError.java,v 1.10 2005-06-22 15:31:16 piso Exp $
     5 * $Id: SimpleTypeError.java,v 1.11 2005-09-08 16:12:06 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    6767                return result.getStringValue();
    6868            }
    69             final LispObject datum = getDatum();
    70             final LispObject expectedType = getExpectedType();
    71             if (datum != null && expectedType != null) {
    72                 StringBuffer sb = new StringBuffer("The value ");
    73                 sb.append(datum.writeToString());
    74                 sb.append(" is not of type ");
    75                 sb.append(expectedType.writeToString());
    76                 sb.append('.');
    77                 return sb.toString();
    78             }
     69            return super.getMessage();
    7970        }
    8071        catch (Throwable t) {}
Note: See TracChangeset for help on using the changeset viewer.