libSBML C++ API  5.20.4
SBMLExtensionException Class Reference
Inheritance diagram for SBMLExtensionException:
[legend]

Detailed Description

Exception used by package extensions

This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.

Certain situations can result in an exception being thrown by libSBML package extensions. A prominent example involves the constructor for SBMLNamespaces (and its subclasses), which will throw SBMLExtensionException if the arguments it is given refer to an unknown SBML Level 3 package. The situation can arise for legitimate SBML files if the necessary package extension has not been registered with a given copy of libSBML.
See also
SBMLNamespaces

Public Member Functions

 SBMLExtensionException (const std::string &errmsg) throw ()
 Creates a new SBMLExtensionException object with a given message. More...
 

Constructor & Destructor Documentation

◆ SBMLExtensionException()

SBMLExtensionException::SBMLExtensionException ( const std::string &  errmsg)
throw (
)

Creates a new SBMLExtensionException object with a given message.

Parameters
errmsga string, the text of the error message to store with this exception.