dtl
Category: functors | Component type: concept |
A AlwaysHandler is an IOHandler function object that is called when exceptions are thrown in DB_iterator operations. This handler simply tells the caller to throw the exception (dtl_ios_base::THROW_EXCEPTION).
Defined in the DBView.h header file.
None.
Parameter | Description | Default |
---|---|---|
DataObj | The value type of objects in a DBView. | |
ParamObj | The type of object used to specify the postfix parameters to the DBView. | DefaultParamObj<DataObj> |
X | A type that is a model of AlwaysThrowsHandler |
a | Object of type X |
Name | Expression | Precondition | Semantics | Postcondition |
---|---|---|---|---|
Default constructor | X a() |
Construct the function object. | ||
Copy constructor | X a(constX &b) |
Copy construct the AlwaysThrowsHandler. | ||
Assignment Operator | X operator=(const X &b) | Assign the AlwaysThrowsHandler. | ||
Throw exception operator | dtl_ios_base::MeansOfRecovery operator()(RootException &ex, dtl_ios_base &base, DataObj &data, ParamObj ¶ms) |
This operator takes references to the thrown RootException object, the dtl_ios_base (iterator) which threw, and the DataObj and ParamObj relevant to the exception. Tells the iterator to throw the exception (dtl_ios_base::THROW_EXCEPTION). |
LoggingHandler, IOHandler, DBView, IndexedDBView
Copyright © 2002, Michael Gradman and Corwin Joy.
Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Corwin Joy and Michael Gradman make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.