Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Using the SCLThrowable Class

The basic construction of the SCLThrowable class is

class SCLThrowable; public  string(32767) message;
  public  list traceback;
  public  string entry;
  public  num  line;

  SCLThrowable:  public method
     s:string;
     message = s;
  endmethod;

  getMessage: public method
     return=string;
     return message;
  endmethod;
endclass;
The traceback, entry, and line attributes are updated automatically by the SCL interpreter when an exception is thrown. The traceback attribute contains the SCL stack traceback at the point of the throw, the entry attribute is the SCL entry that throws the exception, and the line attribute is the line number in that entry where the exception is thrown.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.