Sha256: 7b26a7ee180c0426518e2e9271225f4015b9e1b2e0d8c9b28e2579f33e40dc85

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

#ifndef RGEO_GEOS_ERROS_INCLUDED
#define RGEO_GEOS_ERROS_INCLUDED

#include <ruby.h>

#include "preface.h"

#ifdef RGEO_GEOS_SUPPORTED

#include "errors.h"

RGEO_BEGIN_C

// Any error relative to RGeo.
VALUE rgeo_error;
// RGeo error specific to the GEOS implementation.
VALUE geos_error;


void rgeo_init_geos_errors() {
  VALUE rgeo_module;
  VALUE error_module;

  rgeo_module = rb_define_module("RGeo");
  error_module = rb_define_module_under(rgeo_module, "Error");
  rgeo_error = rb_define_class_under(error_module, "RGeoError", rb_eRuntimeError);
  geos_error = rb_define_class_under(error_module, "GeosError", rgeo_error);
}

RGEO_END_C

#endif // RGEO_GEOS_SUPPORTED

#endif // RGEO_GEOS_ERROS_INCLUDED

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rgeo-2.3.1 ext/geos_c_impl/errors.c
rgeo-2.3.0 ext/geos_c_impl/errors.c
rgeo-2.2.0 ext/geos_c_impl/errors.c