https://mooseframework.inl.gov
Functions
MooseBaseParameterInterface.C File Reference

Go to the source code of this file.

Functions

std::string paramErrorPrefix (const InputParameters &params, const std::string &param)
 Get canonical paramError prefix for param-related error/warning/info messages. More...
 

Function Documentation

◆ paramErrorPrefix()

std::string paramErrorPrefix ( const InputParameters params,
const std::string &  param 
)

Get canonical paramError prefix for param-related error/warning/info messages.

Use this for building custom messages when the default paramError isn't quite what you need.

Definition at line 16 of file MooseBaseParameterInterface.C.

Referenced by MaterialPropertyInterface::checkBlockAndBoundaryCompatibility(), and MooseBaseParameterInterface::paramErrorMsg().

17 {
18  return params.errorPrefix(param);
19 }
std::string errorPrefix(const std::string &param) const
generate error message prefix with parameter name and location (if available)