RGSSError is a subclass of StandardError
This commit is contained in:
		
							parent
							
								
									d223d83cbf
								
							
						
					
					
						commit
						e9d0d0566b
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -41,7 +41,6 @@ struct
 | 
			
		|||
} static customExc[] =
 | 
			
		||||
{
 | 
			
		||||
	{ MKXP,   "MKXPError"   },
 | 
			
		||||
	{ RGSS,   "RGSSError"   },
 | 
			
		||||
	{ PHYSFS, "PHYSFSError" },
 | 
			
		||||
	{ SDL,    "SDLError"    }
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			@ -51,6 +50,7 @@ RbData::RbData()
 | 
			
		|||
	for (size_t i = 0; i < ARRAY_SIZE(customExc); ++i)
 | 
			
		||||
		exc[customExc[i].id] = rb_define_class(customExc[i].name, rb_eException);
 | 
			
		||||
 | 
			
		||||
	exc[RGSS]  = rb_define_class("RGSSError", rb_eStandardError);
 | 
			
		||||
	exc[Reset] = rb_define_class(rgssVer >= 3 ? "RGSSReset" : "Reset", rb_eException);
 | 
			
		||||
 | 
			
		||||
	exc[ErrnoENOENT] = rb_const_get(rb_const_get(rb_cObject, rb_intern("Errno")), rb_intern("ENOENT"));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue