MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / OutOfMemory

Method OutOfMemory

src/openms/source/CONCEPT/Exception.cpp:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 OutOfMemory::OutOfMemory(const char* file, int line, const char* function, Size size) noexcept :
131 BaseException(file, line, function, "OutOfMemory", "unable to allocate enough memory (size = " + String(size) + " bytes) ")
132 {
133 GlobalExceptionHandler::getInstance().setMessage(static_cast<std::runtime_error>(*this).what());
134 }
135
136 SizeUnderflow::SizeUnderflow(const char* file, int line, const char* function, Size size) noexcept :
137 BaseException(file, line, function, "SizeUnderflow", "the given size was too small: " + String(size))

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
StringClass · 0.50
setMessageMethod · 0.45

Tested by

no test coverage detected