Support Class Library
A set of tools providing classes and utility
NonNullViolation.h
Go to the documentation of this file.
1 #pragma once
3 
4 namespace scl{
5  namespace exceptions{
8 
9  NonNullViolation() : NonNullViolation("Got nullptr on a variable that is expected to be non null"){}
10 
11  realConst(char*) type() const noexcept override{
12  return "scl::exceptions::NonNullViolation";
13  }
14  };
15  }
16 }
Global namespace of the SCL.
Definition: alias.hpp:3
#define realConst(type)
Definition: macros.h:3
Exception(T &&reason)
Construct an scl::exceptions::Exception from an error message.
Definition: Exception.h:27
const char *const type() const noexcept override
A string describing the name of the exception class.
Base class for all regular exceptions.
Definition: Exception.h:12