SeedException

SeedException — Manipulation of JavaScript exceptions.

Synopsis


#include <seed/seed.h>

typedef             SeedException;
void                seed_make_exception                 (SeedContext ctx,
                                                         SeedException exception,
                                                         const gchar *name,
                                                         const gchar *message,
                                                         ...);
gchar *             seed_exception_get_name             (SeedContext ctx,
                                                         SeedException exception);
gchar *             seed_exception_get_message          (SeedContext ctx,
                                                         SeedException exception);
guint               seed_exception_get_line             (SeedContext ctx,
                                                         SeedException exception);
gchar *             seed_exception_get_file             (SeedContext ctx,
                                                         SeedException exception);
gchar *             seed_exception_to_string            (SeedContext ctx,
                                                         SeedException exception);

Description

Details

SeedException

typedef gpointer SeedException;


seed_make_exception ()

void                seed_make_exception                 (SeedContext ctx,
                                                         SeedException exception,
                                                         const gchar *name,
                                                         const gchar *message,
                                                         ...);

Generates exception with the name and description of error.

ctx :

A SeedContext.

exception :

A reference to a SeedException in which to store the exception.

name :

message :

... :


seed_exception_get_name ()

gchar *             seed_exception_get_name             (SeedContext ctx,
                                                         SeedException exception);

ctx :

A SeedContext.

exception :

A reference to a SeedException.

Returns :

A gchar* representing the name of exception.

seed_exception_get_message ()

gchar *             seed_exception_get_message          (SeedContext ctx,
                                                         SeedException exception);

ctx :

A SeedContext.

exception :

A reference to a SeedException.

Returns :

A gchar* representing the detailed message of exception.

seed_exception_get_line ()

guint               seed_exception_get_line             (SeedContext ctx,
                                                         SeedException exception);

ctx :

A SeedContext.

exception :

A reference to a SeedException.

Returns :

A guint representing the line number from which exception was thrown.

seed_exception_get_file ()

gchar *             seed_exception_get_file             (SeedContext ctx,
                                                         SeedException exception);

ctx :

A SeedContext.

exception :

A reference to a SeedException.

Returns :

A gchar* representing the name of the file from which exception was thrown.

seed_exception_to_string ()

gchar *             seed_exception_to_string            (SeedContext ctx,
                                                         SeedException exception);

ctx :

A SeedContext.

exception :

A reference to a SeedException.

Returns :

A gchar* representing the name, detailed message, line number, and file name of exception.