Class Proj4::Error
In: lib/proj4.rb
Parent: StandardError

Base class for all Proj.4 exceptions. Subclasses with the name <errorname>Error are available for each exception.

Methods

errnum   error   list   raise_error  

Constants

ERRORS = %w{Unknown NoArgsInInitList NoOptionsInInitFile NoColonInInitString ProjectionNotNamed UnknownProjectionId EffectiveEccentricityEq1 UnknownUnitConversionId InvalidBooleanParamArgument UnknownEllipticalParameterName ReciprocalFlatteningIsZero RadiusReferenceLatitudeGt90 SquaredEccentricityLessThanZero MajorAxisOrRadiusIsZeroOrNotGiven LatitudeOrLongitudeExceededLimits InvalidXOrY ImproperlyFormedDMSValue NonConvergentInverseMeridinalDist NonConvergentInversePhi2 AcosOrAsinArgTooBig ToleranceCondition ConicLat1EqMinusLat2 Lat1GreaterThan90 Lat1IsZero LatTsGreater90 NoDistanceBetweenControlPoints ProjectionNotSelectedToBeRotated WSmallerZeroOrMSmallerZero LsatNotInRange PathNotInRange HSmallerZero KSmallerZero Lat0IsZeroOr90OrAlphaIsZero Lat1EqLat2OrLat1IsZeroOrLat2Is90 EllipticalUsageRequired InvalidUTMZoneNumber ArgsOutOfRangeForTchebyEval NoProjectionToBeRotated FailedToLoadNAD2783CorrectionFile BothNAndMMustBeSpecdAndGreaterZero NSmallerZeroOrNGreaterOneOrNotSpecified Lat1OrLat2NotSpecified AbsoluteLat1EqLat2 Lat0IsHalfPiFromMeanLat UnparseableCoordinateSystemDefinition GeocentricTransformationMissingZOrEllps UnknownPrimeMeridianConversionId}   List of all Proj.4 errors.

Public Class methods

Return name of error with given number.

[Source]

    # File lib/proj4.rb, line 32
32:         def self.error(errnum)
33:             ERRORS[errnum.abs] || 'Unknown'
34:         end

Return list of all errors.

[Source]

    # File lib/proj4.rb, line 24
24:         def self.list
25:             ERRORS
26:         end

Raise an error with error number errnum.

[Source]

    # File lib/proj4.rb, line 37
37:         def self.raise_error(errnum)
38:             raise eval("#{error(errnum.abs)}Error"), message(-(errnum.abs)), caller[0..-1]
39:         end

Public Instance methods

Return error number of this error.

[Source]

    # File lib/proj4.rb, line 42
42:         def errnum
43:             self.class.errnum
44:         end

[Validate]