https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CapabilityException.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#include "CapabilityException.h"
11
12#include "MooseStringUtils.h"
13namespace Moose
14{
16 const std::vector<std::string> & unknown_capabilities)
17 : CapabilityException("The following capabilities are unknown: ",
18 MooseUtils::stringJoin(unknown_capabilities, ", ")),
19 unknown_capabilities(unknown_capabilities)
20{
21}
22}
Common execption to be thrown when interacting with capabilities.
UnknownCapabilitiesException(const std::vector< std::string > &unknown_capabilities)
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...