From 0edf6c8518524b617e8ecdd1d8a49814b027f2d4 Mon Sep 17 00:00:00 2001 From: xordog Date: Thu, 29 Feb 2024 02:05:03 +0900 Subject: [PATCH] Change the super class for exception class from RuntimeError to StandardError --- ext/reflex/exception.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/reflex/exception.cpp b/ext/reflex/exception.cpp index 57f6100..106e73d 100644 --- a/ext/reflex/exception.cpp +++ b/ext/reflex/exception.cpp @@ -13,7 +13,7 @@ Init_reflex_exception () { Module mReflex = define_module("Reflex"); - cReflexError = mReflex.define_class("ReflexError", rb_eRuntimeError); + cReflexError = mReflex.define_class("ReflexError", rb_eStandardError); cLayoutError = mReflex.define_class("LayoutError", cReflexError); cPhysicsError = mReflex.define_class("PhysicsError", cReflexError); }