Lines Matching full:exception
15 ** exception handling
33 ** SM_ETYPE_PRINTF -- printf for exception types.
36 ** exc -- exception.
45 ** by most exception types. It prints the printcontext string, interpreting
47 ** If exception argument 3 is an int or long, then %3 will print the
135 ** Standard exception types.
139 ** SM_ETYPE_OS_PRINT -- Print OS related exception.
142 ** exc -- exception.
191 ** more specific exception codes.
204 ** SM_EXC_VNEW_X -- Construct a new exception object.
207 ** etype -- type of exception.
211 ** pointer to exception object.
217 ** If an exception is raised, then to avoid a storage leak, we must:
219 ** (b) Free all exception arguments in the varargs list.
227 ** exception E that owns exc. When E is eventually freed, exc is also freed.
229 ** an out-of-memory exception so that exc is not leaked.
255 ** Step 1. Allocate the exception structure.
257 ** exception arguments.
269 ** exception arguments. On success, scan the varargs list,
305 ** On failure, free exc, argv, all the exception arguments
336 ** Scan ap and free all exception arguments.
363 ** all exception arguments and all string
393 ** SM_EXC_NEW_X -- Construct a new exception object.
396 ** etype -- type of exception.
400 ** pointer to exception object.
424 ** SM_EXC_FREE -- Destroy a reference to an exception object.
427 ** exc -- exception object.
467 ** SM_EXC_MATCH -- Match exception category against a glob pattern.
470 ** exc -- exception.
489 ** SM_EXC_WRITE -- Write exception message to a stream (wo trailing newline).
492 ** exc -- exception.
509 ** SM_EXC_PRINT -- Print exception message to a stream (with trailing newline).
512 ** exc -- exception.
533 ** SM_EXC_NEWTHREAD -- Initialize exception handling for new process/thread.
536 ** h -- default exception handler.
544 ** exception handler stack and optionally setting a default
545 ** exception handler function. Call this at the beginning of main,
563 ** SM_EXC_RAISE_X -- Raise an exception.
566 ** exc -- exception.
590 ** raises an exception, then sm_exc_raise_x is
602 ** No exception handler, so print the error and exit.
604 ** call sm_exc_newthread or put an exception handler in main().
606 ** XXX TODO: map the exception category to an exit code
626 ** etype -- type of exception.