Support Class Library
A set of tools providing classes and utility
All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
InvalidResource.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace scl{
6  namespace exceptions{
12  InvalidResource() : InvalidResource{"Resource does not specialize scl::async::with_traits"} {
13  }
14 
15  realConst(char*) type() const noexcept override{
16  return "scl::exceptions::InvalidResource";
17  }
18  };
19  }
20 }
Exception class used when a resource is used without specialized traits.
Global namespace of the SCL.
Definition: alias.hpp:3
#define realConst(type)
Definition: macros.h:3
const char *const type() const noexcept override
The name of this Throwable type.
RuntimeException(T &&reason)
Construct an scl::exceptions::Exception from an error message.
Base class for exceptions that could never be checked at compile-time.