1 20 21 package org.jacorb.idl; 22 23 29 30 public class ParseException 31 extends RuntimeException  32 { 33 34 private PositionInfo position = null; 35 36 public ParseException() 37 { 38 } 39 40 public ParseException( String reason ) 41 { 42 super( reason ); 43 } 44 45 public ParseException( String reason, PositionInfo pos ) 46 { 47 super( reason ); 48 position = pos; 49 } 50 51 public String getMessage() 52 { 53 return 54 ( position != null ? (position.toString() + ": ") : "" ) + 55 "Parse error " + 56 ( super.getMessage() != null ? (": " + super.getMessage()) : "" ) ; 57 } 58 59 60 61 } 62 63 64 65 66 67 68 69 70 71 | Popular Tags |