Support Class Library
A set of tools providing classes and utility
Public Member Functions | List of all members
scl::exceptions::InvalidResource Struct Reference

Exception class used when a resource is used without specialized traits. More...

#include "InvalidResource.h"

Inheritance diagram for scl::exceptions::InvalidResource:
Inheritance graph
[legend]
Collaboration diagram for scl::exceptions::InvalidResource:
Collaboration graph
[legend]

Public Member Functions

 InvalidResource ()
 
const char *const type () const noexcept override
 The name of this Throwable type. More...
 
- Public Member Functions inherited from scl::exceptions::RuntimeException
template<class T >
 RuntimeException (T &&reason)
 Construct an scl::exceptions::Exception from an error message. More...
 
const char *const reason () const override
 Retrieve the reason. More...
 
const char * what () const noexcept override
 Override that uses the user defined reason. More...
 
const char *const type () const noexcept override
 A string describing the name of the exception class. More...
 

Additional Inherited Members

- Protected Attributes inherited from scl::exceptions::RuntimeException
const char *const _reason = ""
 The error message that comes with this Exception. More...
 

Detailed Description

Exception class used when a resource is used without specialized traits.

Definition at line 10 of file InvalidResource.h.

Constructor & Destructor Documentation

◆ InvalidResource()

scl::exceptions::InvalidResource::InvalidResource ( )
inline

Definition at line 12 of file InvalidResource.h.

Member Function Documentation

◆ type()

const char* const scl::exceptions::InvalidResource::type ( ) const
inlineoverridevirtualnoexcept

The name of this Throwable type.

Returns
a stirng literal containing the name of the Throwable type

Implements scl::exceptions::Throwable.

Definition at line 15 of file InvalidResource.h.


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