EvalScriptingErrorHandler.st
author Claus Gittinger <cg@exept.de>
Wed, 19 Feb 2014 23:48:25 +0100
changeset 3376 c9176bc16ede
parent 3374 0b430a313a88
child 3378 4f6e4135ab25
permissions -rw-r--r--
class: EvalScriptingErrorHandler changed: #autoDefineVariables

"
 COPYRIGHT (c) 2014 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libcomp' }"

CompilationErrorHandler subclass:#EvalScriptingErrorHandler
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'System-Compiler'
!

!EvalScriptingErrorHandler class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2014 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    I am the ErrorHandler used when executing eval-scripts
"
! !

!EvalScriptingErrorHandler methodsFor:'error handling'!

error:aMessage position:position to:endPos from:aCompiler
    "error notification.
     This is sent by the compiler/evaluator if it detects errors."

    Stderr nextPutAll:'[Error] ',aMessage.
    ^ #Error
! !

!EvalScriptingErrorHandler methodsFor:'queries'!

autoDefineVariables
    "when evaluating with --eval, auto define any variables as workspace vars"

    ^ #workspace. "/ true
! !

!EvalScriptingErrorHandler class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libcomp/EvalScriptingErrorHandler.st,v 1.3 2014-02-19 22:48:25 cg Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/stx/libcomp/EvalScriptingErrorHandler.st,v 1.3 2014-02-19 22:48:25 cg Exp $'
! !