Sha256: 18f25aa7870c322ed9e61be95144564b30dd88053af35e9617844a781901e453
Contents?: true
Size: 1.56 KB
Versions: 2
Compression:
Stored size: 1.56 KB
Contents
module OGR class CorruptData < RuntimeError end class CreateFailure < RuntimeError end class DriverNotFound < RuntimeError def initialize(driver, msg = nil) message = if msg msg elsif driver.is_a? String "Driver not found with name '#{driver}'." elsif driver.is_a? Fixnum "Driver at index #{driver} not found." end super(message) end end class Failure < StandardError end class InvalidDataSource < StandardError end class InvalidFeature < StandardError end class InvalidFeatureDefinition < StandardError end class InvalidFieldDefinition < StandardError end class InvalidGeometry < StandardError end class InvalidGeometryFieldDefinition < StandardError end class InvalidHandle < RuntimeError end class InvalidLayer < StandardError end class InvalidStyleTable < StandardError end class InvalidSpatialReference < StandardError end class NotEnoughData < RuntimeError end class OpenFailure < RuntimeError def initialize(file, msg = nil) message = msg || "Unable to open file '#{file}'. Perhaps an unsupported file format?" super(message) end end class ReadOnlyObject < StandardError def initialize(msg = nil) message = msg || "The object you're accessing is read-only. Probably because it's internally managed by OGR." super(message) end end class UnsupportedGeometryType < StandardError end class UnsupportedOperation < StandardError end class UnsupportedSRS < StandardError end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta5 | lib/ogr/exceptions.rb |
ffi-gdal-1.0.0.beta4 | lib/ogr/exceptions.rb |