Changeset 1081


Ignore:
Timestamp:
03/06/03 04:27:07 (19 years ago)
Author:
piso
Message:

getMessage()

File:
1 edited

Legend:

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

    r761 r1081  
    33 *
    44 * Copyright (C) 2002-2003 Peter Graves
    5  * $Id: WrongNumberOfArgumentsException.java,v 1.3 2003-02-16 04:03:27 piso Exp $
     5 * $Id: WrongNumberOfArgumentsException.java,v 1.4 2003-03-06 04:27:07 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    4141    public String getMessage()
    4242    {
    43         StringBuffer sb = new StringBuffer("wrong number of arguments for ");
    44         if (name != null)
     43        StringBuffer sb = new StringBuffer("wrong number of arguments");
     44        if (name != null) {
     45            sb.append(" for ");
    4546            sb.append(name);
    46         else if (object != null && object.getName() != null)
     47        } else if (object != null && object.getName() != null) {
     48            sb.append(" for ");
    4749            sb.append(object.getName());
    48         else
    49             sb.append(String.valueOf(object));
     50        }
    5051        return sb.toString();
    5152    }
Note: See TracChangeset for help on using the changeset viewer.