1Builtins.exceptionMessage(3kayKaa)ya module refereBnucieltins.exceptionMessage(3kaya)
2
3
4

NAME

6       Builtins::exceptionMessage - Get a human-readable error message
7

SYNOPSIS

9       String exceptionMessage( Exception e )
10

ARGUMENTS

12       e The caught Exception
13

DESCRIPTION

15       Return  the error message in an Exception. This is useful for determinā€
16       ing the exception caught by a catch-all clause, but it is preferable to
17       catch Exceptions by name.
18
19
20    try {
21        functionThatMayGoWrong(a,b,c);
22    } catch(e) {
23        putStrLn("Something went wrong: "+exceptionMessage(e));
24    }
25

AUTHORS

27       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
28       (kaya@kayalang.org). For further information see http://kayalang.org/
29

LICENSE

31       The Kaya standard library is free software;  you  can  redistribute  it
32       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
33       License (version 2.1 or any later version) as  published  by  the  Free
34       Software Foundation.
35
37       Builtins.exceptionBacktrace (3kaya)
38       Builtins.exceptionCode (3kaya)
39
40
41
42Kaya                             December 2010Builtins.exceptionMessage(3kaya)
Impressum