summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2013-10-25 19:39:00 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2013-10-25 19:39:00 +0000
commit3faf0d37ebb9ce64a6fdf39c03c84042902c1107 (patch)
tree0a89ef2ec8d7f240823e9d8dbab1db8316f527e8 /qpid/cpp/bindings
parentcafc3478000e381db390bcd97615518cd1f02d00 (diff)
downloadqpid-python-3faf0d37ebb9ce64a6fdf39c03c84042902c1107.tar.gz
QPID-5250: Fixed the ordering of caught/throw Ruby exceptions.
The previous ordering let parent classes be caught before descendant classes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535837 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings')
-rw-r--r--qpid/cpp/bindings/qpid/ruby/ruby.i80
1 files changed, 40 insertions, 40 deletions
diff --git a/qpid/cpp/bindings/qpid/ruby/ruby.i b/qpid/cpp/bindings/qpid/ruby/ruby.i
index 2a544072ad..34388a2b16 100644
--- a/qpid/cpp/bindings/qpid/ruby/ruby.i
+++ b/qpid/cpp/bindings/qpid/ruby/ruby.i
@@ -32,84 +32,84 @@
try {
$action
}
- catch(qpid::messaging::InvalidOptionString& error) {
- static VALUE merror = rb_define_class("InvalidOptionString", eMessagingError);
- rb_raise(merror, error.what());
- }
- catch(qpid::messaging::KeyError& error) {
- static VALUE merror = rb_define_class("KeyError", eMessagingError);
+ catch(qpid::messaging::ConnectionError& error) {
+ static VALUE merror = rb_define_class("ConnectionError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::LinkError& error) {
- static VALUE merror = rb_define_class("LinkError", eMessagingError);
+ catch(qpid::messaging::TransportFailure& error) {
+ static VALUE merror = rb_define_class("TransportFailure", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::AddressError& error) {
- static VALUE merror = rb_define_class("AddressError", eMessagingError);
+ catch(qpid::messaging::TransactionAborted& error) {
+ static VALUE merror = rb_define_class("TransactionAborted", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::ResolutionError& error) {
- static VALUE merror = rb_define_class("ResolutionError", eMessagingError);
+ catch(qpid::messaging::TransactionError& error) {
+ static VALUE merror = rb_define_class("TransactionError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::AssertionFailed& error) {
- static VALUE merror = rb_define_class("AssertionFailed", eMessagingError);
+ catch(qpid::messaging::UnauthorizedAccess& error) {
+ static VALUE merror = rb_define_class("UnauthorizedAccess", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::NotFound& error) {
- static VALUE merror = rb_define_class("NotFound", eMessagingError);
+ catch(qpid::messaging::SessionError& error) {
+ static VALUE merror = rb_define_class("SessionError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::MalformedAddress& error) {
- static VALUE merror = rb_define_class("MalformedAddress", eMessagingError);
+ catch(qpid::messaging::TargetCapacityExceeded& error) {
+ static VALUE merror = rb_define_class("TargetCapacityExceeded", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::ReceiverError& error) {
- static VALUE merror = rb_define_class("ReceiverError", eMessagingError);
+ catch(qpid::messaging::SendError& error) {
+ static VALUE merror = rb_define_class("SendError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::FetchError& error) {
- static VALUE merror = rb_define_class("FetchError", eMessagingError);
+ catch(qpid::messaging::SenderError& error) {
+ static VALUE merror = rb_define_class("SenderError", eMessagingError);
rb_raise(merror, error.what());
}
catch(qpid::messaging::NoMessageAvailable& error) {
static VALUE merror = rb_define_class("NoMessageAvailable", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::SenderError& error) {
- static VALUE merror = rb_define_class("SenderError", eMessagingError);
+ catch(qpid::messaging::FetchError& error) {
+ static VALUE merror = rb_define_class("FetchError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::SendError& error) {
- static VALUE merror = rb_define_class("SendError", eMessagingError);
+ catch(qpid::messaging::ReceiverError& error) {
+ static VALUE merror = rb_define_class("ReceiverError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::TargetCapacityExceeded& error) {
- static VALUE merror = rb_define_class("TargetCapacityExceeded", eMessagingError);
+ catch(qpid::messaging::InvalidOptionString& error) {
+ static VALUE merror = rb_define_class("InvalidOptionString", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::SessionError& error) {
- static VALUE merror = rb_define_class("SessionError", eMessagingError);
+ catch(qpid::messaging::KeyError& error) {
+ static VALUE merror = rb_define_class("KeyError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::TransactionError& error) {
- static VALUE merror = rb_define_class("TransactionError", eMessagingError);
+ catch(qpid::messaging::AssertionFailed& error) {
+ static VALUE merror = rb_define_class("AssertionFailed", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::TransactionAborted& error) {
- static VALUE merror = rb_define_class("TransactionAborted", eMessagingError);
+ catch(qpid::messaging::NotFound& error) {
+ static VALUE merror = rb_define_class("NotFound", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::UnauthorizedAccess& error) {
- static VALUE merror = rb_define_class("UnauthorizedAccess", eMessagingError);
+ catch(qpid::messaging::ResolutionError& error) {
+ static VALUE merror = rb_define_class("ResolutionError", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::ConnectionError& error) {
- static VALUE merror = rb_define_class("ConnectionError", eMessagingError);
+ catch(qpid::messaging::MalformedAddress& error) {
+ static VALUE merror = rb_define_class("MalformedAddress", eMessagingError);
rb_raise(merror, error.what());
}
- catch(qpid::messaging::TransportFailure& error) {
- static VALUE merror = rb_define_class("TransportFailure", eMessagingError);
+ catch(qpid::messaging::AddressError& error) {
+ static VALUE merror = rb_define_class("AddressError", eMessagingError);
+ rb_raise(merror, error.what());
+ }
+ catch(qpid::messaging::LinkError& error) {
+ static VALUE merror = rb_define_class("LinkError", eMessagingError);
rb_raise(merror, error.what());
}
catch(qpid::messaging::MessagingException& error) {