https://mooseframework.inl.gov
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"
13 namespace 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 }
UnknownCapabilitiesException(const std::vector< std::string > &unknown_capabilities)
Common execption to be thrown when interacting with capabilities.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
std::string stringJoin(const std::vector< std::string > &values, const std::string &separator=" ")
Concatenates value into a single string separated by separator.