up: E     index Zimbu documentation

CLASS E.Exit EXTENDS E.Exception @public

summary

     

Exception thrown by EXIT.

NEW(value) @file  Create a new E.Exit exception. value is the exit value.
$ToString() string @file  Return a string representation of the exception.
$writeTo(w) @file  Write a string representation of the exception to w.
$getValue() int @file  Get the exit value, the argument of EXIT.
 
Inherited from E.Exception:
NEW(msg) @public  Create a new generic exception using the position of the caller.
NEW(pos, msg) @public  Create a new generic exception with position pos.
$toString(verbose) string @public  Return a string representation of the exception.
$writeTo(verbose, w) @public  Return a string representation of the exception.
$getMessage() string @public  Return the message of the Exception.
$getPos() Z.Pos @public  Return the position where the Exception was thrown.
$getBacktrace() list<Z.Pos> @public  Return the stack trace of where the Exception was thrown.
 

members (alphabetically)

     

PROC NEW(int value) @file

     

Create a new E.Exit exception. value is the exit value.

FUNC $ToString() string @replace @file

     

Return a string representation of the exception.

This includes the exit value and position, does not include a stack trace.

FUNC $getValue() int @file

     

Get the exit value, the argument of EXIT.

PROC $writeTo(IO.I_Writer w) @replace @file

     

Write a string representation of the exception to w.

This includes the exit value and position, does not include a stack trace.

license

      Copyright 2011 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0