Files
harbour-core/harbour/source/rtl/errorsys.prg

44 lines
889 B
Plaintext

/*
* $Id$
*/
// Standard Harbour ErrorSys system
//----------------------------------------------------------------------------//
init procedure ClipInit
// public getlist := {} TODO!
ErrorSys()
return
//----------------------------------------------------------------------------//
static function DefError( oError )
local cInfo := ""
local n := 2
do while ! Empty( ProcName( n ) )
cInfo += Chr( 13 ) + Chr( 10 ) + "Called from " + ProcName( n ) + ;
"(" + AllTrim( Str( ProcLine( n++ ) ) ) + ")"
enddo
QOut( oError:Description + Chr( 13 ) + Chr( 10 ) + cInfo )
__Quit()
return .t.
//----------------------------------------------------------------------------//
procedure ErrorSys
ErrorBlock( { | oError | DefError( oError ) } )
return
//----------------------------------------------------------------------------//