Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3749 closed enhancement (fixed)

Ruby MapScript Exceptions

Reported by: jimk Owned by: jimk
Priority: normal Milestone:
Component: MapScript-Ruby Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description

Improve exception handling in Ruby MapScript. Instead of just returning a generic error, this looks at the most recent ErrorObj and raises the appropriate Ruby exception for

MS_IOERR => IOError
MS_MEMERR => NoMemError
MS_TYPEERR => TypeError
MS_EOFERR => EOFError
MS_CHILDERR => Mapscript::MapServerChildError
all others => Mapscript::MapServerError

With the Exception message set to the result of msGetErrorString().

This is basically porting from Python MapScript to Ruby.

Change History (2)

comment:1 by jimk, 13 years ago

Resolution: fixed
Status: newclosed

All changes in ./mapscript/ruby/rbmodule.i

Committed revision 11185.

Note: See TracTickets for help on using tickets.