Sha256: b3485808ea17fc5abde56e5c027e71f77d328faa6f1f0a191ab72a02d8e9da15

Contents?: true

Size: 1.24 KB

Versions: 15

Compression:

Stored size: 1.24 KB

Contents

/* -----------------------------------------------------------------------------
 * error manipulation
 *
 * Customized for wxRuby3.
 * Copyright (c) 2023 M.J.N. Corino, The Netherlands
 *
 * This software is released under the MIT license.
 * ----------------------------------------------------------------------------- */


/* Define some additional error types */
#define SWIG_ObjectPreviouslyDeletedError  -100


/* Define custom exceptions for errors that do not map to existing Ruby
   exceptions.  Note this only works for C++ since a global cannot be
   initialized by a function in C.  For C, fallback to rb_eRuntimeError.*/

WXRUBY_EXPORT VALUE
getNullReferenceError(void);

WXRUBY_EXPORT VALUE
getObjectPreviouslyDeletedError(void);

WXRUBY_EXPORT VALUE
SWIG_Ruby_ErrorType(int SWIG_code);

/* This function is called when a user inputs a wrong argument to
   a method.
 */
WXRUBY_EXPORT
const char* Ruby_Format_TypeError( const char* msg,
				   const char* type, 
				   const char* name, 
				   const int argn,
				   VALUE input );

/* This function is called when an overloaded method fails */
WXRUBY_EXPORT
void Ruby_Format_OverloadedError(
				 const int argc,
				 const int maxargs,
				 const char* method, 
				 const char* prototypes 
				 );

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wxruby3-1.3.1 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-1.3.0 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-1.2.1 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-1.2.0 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-1.1.2 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-1.1.1 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-1.1.0 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-1.0.1 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-0.9.8 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-0.9.7 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-0.9.5 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-0.9.4 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-0.9.3 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-0.9.2 ext/wxruby3/swig/custom/rubyerrors.swg
wxruby3-0.9.1 ext/wxruby3/swig/custom/rubyerrors.swg