logo
const class

compiler::CompilerErr

sys::Obj
  sys::Err
    compiler::CompilerErr
  1  //
  2  // Copyright (c) 2006, Brian Frank and Andy Frank
  3  // Licensed under the Academic Free License version 3.0
  4  //
  5  // History:
  6  //   18 May 06  Brian Frank  Creation
  7  //
  8  
  9  **
 10  ** CompilerErr - instances should always be created via CompilerStep.err().
 11  **
 12  const class CompilerErr : Err
 13  {
 14  
 15    new make(Str msg, Location location, Err cause := null)
 16      : super(msg, cause)
 17    {
 18      if (location != null)
 19      {
 20        this.file = location.file
 21        this.line = location.line
 22        this.col  = location.col
 23      }
 24    }
 25  
 26    Location location()
 27    {
 28      return Location.make(file, line, col)
 29    }
 30  
 31    const Str file
 32    const Int line
 33    const Int col
 34  }

More Info