This file contains a replica of Ian Scott's exception mechanism as coded in vil_exception.h and mbl_exception.h. However, it encapsulates the exceptions thrown by the vidl2 library.
Note that vidl2_exception_error, vidl2_exception_warning, and possibly a vxl/vbl_exception should really be part of vbl. So that any level-2 library can use them.
Modifications
01/24/2006 - File created. (miguelfv)
03/07/2006 - File imported to vxl repository with some modifications
and extensions to Paul's code. (miguelfv)
Definition in file vidl2_exception.h.
#include <vcl_iostream.h>
#include <vcl_string.h>
Go to the source code of this file.
Classes | |
| class | vidl2_exception |
| Base class of all vidl2 exceptions. More... | |
| struct | vidl2_dshow_exception |
| Base class for all the DShow related vidl2 exceptions. More... | |
Functions | |
| template<class T> | |
| void | vidl2_exception_error (T exception) |
| Throw an exception indicating a definite problem. | |
| template<class T> | |
| void | vidl2_exception_warning (T exception) |
| Throw an exception indicating a potential problem. | |
| void vidl2_exception_error | ( | T | exception | ) |
Throw an exception indicating a definite problem.
If exceptions have been disabled, this function will abort.
Definition at line 32 of file vidl2_exception.h.
| void vidl2_exception_warning | ( | T | exception | ) |
Throw an exception indicating a potential problem.
If exceptions have been disabled, this function will return.
Definition at line 46 of file vidl2_exception.h.
1.5.1