SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
SHiP::geometry::UnknownSubsystem Class Reference

Thrown when a subsystem name is not in the registry. More...

#include <SubsystemRegistry.h>

Inheritance diagram for SHiP::geometry::UnknownSubsystem:
[legend]
Collaboration diagram for SHiP::geometry::UnknownSubsystem:
[legend]

Public Member Functions

 UnknownSubsystem (const std::string &name)
const std::string & name () const noexcept

Detailed Description

Thrown when a subsystem name is not in the registry.

A distinct type so that callers can tell a mis-spelled name, for which the list of subsystemNames() is useful advice, from a failure inside a build.

Constructor & Destructor Documentation

◆ UnknownSubsystem()

SHiP::geometry::UnknownSubsystem::UnknownSubsystem ( const std::string & name)
inlineexplicit
Parameters
nameThe name that was looked up.

Member Function Documentation

◆ name()

const std::string & SHiP::geometry::UnknownSubsystem::name ( ) const
inlinenodiscardnoexcept
Returns
The name that was looked up.

The documentation for this class was generated from the following file: