mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
noise: Throw exception on noise allocation failure
This commit is contained in:
parent
a3e019c4f6
commit
25945dc539
3 changed files with 38 additions and 9 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue