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. More... | |
ScopedThrowOnError (const bool throw_on_error) | |
Specialized constructor, which sets Moose::_throw_on_error based on the argument throw_on_error . More... | |
~ScopedThrowOnError () | |
Destructor, which sets Moose::_throw_on_error to what it was upon construction. More... | |
Private Attributes | |
const bool | _throw_on_error_before |
The value of Moose::_throw_on_error at construction. More... | |
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.
Definition at line 773 of file Moose.C.
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 766 of file Moose.C.
Moose::ScopedThrowOnError::~ScopedThrowOnError | ( | ) |
Destructor, which sets Moose::_throw_on_error to what it was upon construction.
Definition at line 775 of file Moose.C.
|
private |
The value of Moose::_throw_on_error at construction.
Definition at line 316 of file Moose.h.
Referenced by ~ScopedThrowOnError().