|
◆ add_context() [2/2]
void pism::RuntimeError::add_context |
( |
const std::string & |
message | ) |
|
Add a message providing some context. This way we can (sort of) get a stack trace even though C++ exceptions do not provide one.
Definition at line 66 of file error_handling.cc.
References m_context.
Referenced by add_context(), pism::File::append_history(), pism::io::append_time(), pism::File::attribute_name(), pism::File::attribute_type(), pism::Isochrones::bootstrap(), pism::File::close(), pism::io::define_dimension(), pism::File::define_dimension(), pism::io::define_time(), pism::File::define_variable(), pism::details::deposition_times(), pism::File::dimension_length(), pism::File::dimension_type(), pism::File::dimensions(), pism::File::enddef(), pism::Geometry::ensure_consistency(), pism::File::find_dimension(), pism::File::find_variable(), pism::Config::get_number(), pism::Config::get_numbers(), pism::get_projection_info(), pism::Grid::Grid(), pism::Grid_FromFile(), pism::array::Forcing::init(), pism::IceModel::init_extras(), pism::Time::init_from_file(), pism::IceModel::init_snapshots(), pism::IceModel::init_timeseries(), pism::ScalarForcing::initialize(), pism::Isochrones::initialize(), pism::grid::InputGridInfo::InputGridInfo(), pism::options::Integer::Integer(), pism::File::nattributes(), pism::File::nrecords(), pism::File::nvariables(), pism::File::open(), pism::parse_date(), pism::Time::parse_interval_length(), pism::Time::parse_list(), pism::io::read_attributes(), pism::File::read_dimension(), pism::io::read_distributed_array(), pism::File::read_double_attribute(), pism::io::read_for_interpolation(), pism::File::read_text_attribute(), pism::io::read_time_bounds(), pism::io::read_timeseries(), pism::io::read_valid_range(), pism::File::read_variable(), pism::File::read_variable_transposed(), pism::options::Real::Real(), pism::File::redef(), pism::array::Array::regrid(), pism::File::remove_attribute(), pism::Grid::Shallow(), pism::energy::enthSystemCtx::solve(), pism::AgeColumnSystem::solve(), pism::energy::tempSystemCtx::solveThisColumn(), pism::IceModel::step(), pism::File::sync(), pism::Time::Time(), pism::stressbalance::StressBalance::update(), pism::array::Forcing::update(), pism::File::variable_name(), pism::File::write_attribute(), pism::io::write_attributes(), pism::File::write_distributed_array(), pism::io::write_time_bounds(), pism::io::write_timeseries(), and pism::File::write_variable().
|