Method: Proj::Error.check_context

Defined in:
lib/proj/error.rb

.check_context(context) ⇒ Object

Check the context to see if an error occurred. If an error has happened will raise an exception.



30
31
32
33
34
35
# File 'lib/proj/error.rb', line 30

def self.check_context(context)
  unless context.errno == 0
    # raise(self, "#{self.category(context.errno)}: #{self.message(context)}")
    raise(self, self.message(context, context.errno))
  end
end