#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.
Note:
See TracTickets
for help on using tickets.
All changes in ./mapscript/ruby/rbmodule.i
Committed revision 11185.