Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Exc_Ruby::Ruby_Exception Struct Reference

A placeholder for Ruby exceptions. More...

#include <ruby_exceptions.hpp>

List of all members.

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.


Detailed Description

A placeholder for Ruby exceptions.

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 }


Constructor & Destructor Documentation

Exc_Ruby::Ruby_Exception::Ruby_Exception VALUE  exc,
char const *  fmt,
  ...
 

Construct a Ruby_Exception with printf-style formatting (like rb_raise)


The documentation for this struct was generated from the following file:
Generated on Sat Jan 1 12:02:26 2005 for Exceptional Ruby by doxygen 1.3.6