VCV Rack API v2
Loading...
Searching...
No Matches
rack::Exception Struct Reference

An exception explicitly thrown by Rack or a Rack plugin. More...

#include <common.hpp>

Inheritance diagram for rack::Exception:
[legend]
Collaboration diagram for rack::Exception:
[legend]

Public Member Functions

 __attribute__ ((format(printf, 2, 3))) Exception(const char *format
 
 Exception (const std::string &msg)
 
const char * what () const noexcept override
 

Public Attributes

std::string msg
 

Detailed Description

An exception explicitly thrown by Rack or a Rack plugin.

Can be subclassed to throw/catch specific custom exceptions.

Constructor & Destructor Documentation

◆ Exception()

rack::Exception::Exception ( const std::string & msg)
inline

Member Function Documentation

◆ __attribute__()

rack::Exception::__attribute__ ( (format(printf, 2, 3)) ) const

◆ what()

const char * rack::Exception::what ( ) const
inlineoverridenoexcept

Member Data Documentation

◆ msg

std::string rack::Exception::msg

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