#include <ruby_exceptions.hpp>
Public Member Functions | |
| Ruby_Exception (VALUE e) | |
| Construct a Ruby_Exception with the exception e. | |
| Ruby_Exception (VALUE exc, char const *fmt,...) | |
Public Attributes | |
| VALUE | ex |
| The exception being held. | |
You can use this to safely throw a Ruby exception using C++ syntax:
VALUE foo(VALUE self) { RUBY_TRY { throw Ruby_Exception(rb_exc_new(rb_eMyException, "uh oh!")); RUBY_CATCH }
|
||||||||||||||||
|
Construct a Ruby_Exception with printf-style formatting (like rb_raise) |
1.3.6