- Timestamp:
- 06/10/09 19:56:03 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/ProjectFortress/src/com/sun/fortress/exceptions/FortressException.java
r3586 r3835 23 23 import java.util.ArrayList; 24 24 25 import edu.rice.cs.plt.tuple.Option; 25 26 import com.sun.fortress.interpreter.evaluator.Environment; 26 27 import com.sun.fortress.nodes_util.ErrorMsgMaker; … … 111 112 public FortressException(Iterable<? extends StaticError> errors) { 112 113 this.staticErrors = errors; 114 } 115 116 public Option<HasAt> getLoc() { 117 if ( this.where.isEmpty() ) 118 return Option.none(); 119 else return Option.wrap(this.where.get(0)); 120 } 121 122 public String getOriginalMessage() { 123 return super.getMessage(); 113 124 } 114 125

