File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3636,6 +3636,23 @@ class PShader {
36363636
36373637
36383638
3639+ // Java Exception classes
3640+ class Exception : public ::std::exception {
3641+ ::std::string msg;
3642+ public:
3643+ Exception () = default ;
3644+ explicit Exception (const ::std::string& m) : msg(m) {}
3645+ const char * getMessage () const { return msg.c_str (); }
3646+ const char * what () const noexcept override { return msg.c_str (); }
3647+ };
3648+ class RuntimeException : public Exception { using Exception::Exception; };
3649+ class IllegalArgumentException : public Exception { using Exception::Exception; };
3650+ class IllegalStateException : public Exception { using Exception::Exception; };
3651+ class NullPointerException : public Exception { using Exception::Exception; };
3652+ class IndexOutOfBoundsException : public Exception { using Exception::Exception; };
3653+ class UnsupportedOperationException : public Exception { using Exception::Exception; };
3654+ class ArithmeticException : public Exception { using Exception::Exception; };
3655+
36393656// Java Random class
36403657class Random {
36413658 ::std::mt19937 rng;
You can’t perform that action at this time.
0 commit comments