module EAAL::Exception

Public Class Methods

EveAPIException(nr) click to toggle source

creates the class for an EveAPIException

# File lib/eaal/exception.rb, line 8
def self.EveAPIException(nr)
  classname = "EveAPIException#{nr}"
  if not Object.const_defined? classname
    klass = Object.const_set(classname, Class.new(EAAL::Exception::EveAPIException))
  else
    klass = Object.const_get(classname)
  end
  klass
end
raiseEveAPIException(nr, msg) click to toggle source

raise the eve API exceptions, class will be dynamicaly created by classname EveAPIException followed by the APIs exception Number

# File lib/eaal/exception.rb, line 20
def self.raiseEveAPIException(nr, msg)
    raise EAAL::Exception.EveAPIException(nr).new(msg)
end