Scoped helper for setting Moose::_throw_on_error during this scope. More...
#include <Moose.h>
Public Member Functions | |
| ScopedThrowOnError () | |
| Default constructor, which sets Moose::_throw_on_error = true. | |
| ScopedThrowOnError (const bool throw_on_error) | |
Specialized constructor, which sets Moose::_throw_on_error based on the argument throw_on_error. | |
| ~ScopedThrowOnError () | |
| Destructor, which sets Moose::_throw_on_error to what it was upon construction. | |
Private Attributes | |
| const bool | _throw_on_error_before |
| The value of Moose::_throw_on_error at construction. | |
Scoped helper for setting Moose::_throw_on_error during this scope.
Cannot be used within threads.
| Moose::ScopedThrowOnError::ScopedThrowOnError | ( | ) |
Default constructor, which sets Moose::_throw_on_error = true.
| Moose::ScopedThrowOnError::ScopedThrowOnError | ( | const bool | throw_on_error | ) |
Specialized constructor, which sets Moose::_throw_on_error based on the argument throw_on_error.
Definition at line 857 of file Moose.C.
| Moose::ScopedThrowOnError::~ScopedThrowOnError | ( | ) |
Destructor, which sets Moose::_throw_on_error to what it was upon construction.
|
private |
The value of Moose::_throw_on_error at construction.