Changeset 13540


Ignore:
Timestamp:
08/27/11 23:23:05 (10 years ago)
Author:
Mark Evenson
Message:

Pass wrapped error message to IllegalMonitorException?.

Location:
trunk/abcl/src/org/armedbear/lisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/IllegalMonitorState.java

    r12288 r13540  
    4848    }
    4949
     50    public IllegalMonitorState(String message)
     51    {
     52        // This is really just an ordinary PROGRAM-ERROR, broken out into its
     53        // own Java class as a convenience for the implementation.
     54        super(StandardClass.PROGRAM_ERROR);
     55        if (message != null) {
     56            this.message = message;
     57        }
     58        setFormatControl(getMessage());
     59        setFormatArguments(NIL);
     60    }
     61   
     62    String message = "Illegal monitor state.";
     63
    5064    @Override
    5165    public String getMessage()
    5266    {
    53         return "Illegal monitor state.";
     67        return message;
    5468    }
    5569}
  • trunk/abcl/src/org/armedbear/lisp/LispThread.java

    r13530 r13540  
    12501250            }
    12511251            catch (IllegalMonitorStateException e) {
    1252                 return error(new IllegalMonitorState());
     1252                return error(new IllegalMonitorState(e.getMessage()));
    12531253            }
    12541254            return NIL;
     
    12661266            }
    12671267            catch (IllegalMonitorStateException e) {
    1268                 return error(new IllegalMonitorState());
     1268                return error(new IllegalMonitorState(e.getMessage()));
    12691269            }
    12701270            return NIL;
     
    12851285            }
    12861286            catch (IllegalMonitorStateException e) {
    1287                 return error(new IllegalMonitorState());
     1287                return error(new IllegalMonitorState(e.getMessage()));
    12881288            }
    12891289            return NIL;
     
    13031303            }
    13041304            catch (IllegalMonitorStateException e) {
    1305                 return error(new IllegalMonitorState());
     1305                return error(new IllegalMonitorState(e.getMessage()));
    13061306            }
    13071307            return NIL;
Note: See TracChangeset for help on using the changeset viewer.