Skip to content

keizo042/mruby-implerr

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mruby-implerr

Description

ImplementationError class

if you have working in progress mrbgems,
you can throw the exception in not well-considered procedure.
in specific, internal procedure which you wouldn't like to show external env.

e.g.

  • converting Ruby class to corresponding c structure,
  • missunderstanding format codec error etcetc

sample

ret = do_something_internal_procedure()
if ret.nil?
  raise ImplementationError
end

see other examples/*

Requirement

mruby 1.3 or later

Install

add your build_config.rb

  conf.gem "keizo042/mruby-imperr"

TODO

  • export E_IMP_ERROR macro in c

now mrbgem/include is not exported.
According to mruby/doc/guides/mrbgems.md, it will be exported. I'm waitting.

LICENSE

MITL

AUTHOR

keizo

Contact me

twitter : @keizo042 mail: keizo.bookman at gmail.com

About

ImplementationError mgem

Resources

License

Stars

Watchers

Forks

Packages

No packages published