mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
noise: Throw exception on noise allocation failure
This commit is contained in:
@@ -125,6 +125,18 @@ public:
|
||||
Some "old-style" interrupts:
|
||||
*/
|
||||
|
||||
class InvalidNoiseParamsException : public BaseException {
|
||||
public:
|
||||
InvalidNoiseParamsException():
|
||||
BaseException("One or more noise parameters were invalid or require "
|
||||
"too much memory")
|
||||
{}
|
||||
|
||||
InvalidNoiseParamsException(const std::string &s):
|
||||
BaseException(s)
|
||||
{}
|
||||
};
|
||||
|
||||
class InvalidPositionException : public BaseException
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user