Opened 16 years ago

Closed 14 years ago

Last modified 14 years ago

#660 closed enhancement (fixed)

Use more meaningful exception than "The value cannot be less than or equal to zero."

Reported by: zspitzer Owned by:
Priority: low Milestone: 2.3
Component: Rendering Service Version: 2.2.0
Severity: major Keywords:
Cc: External ID:

Description

a common difficulty when using mapagent is the obscure error messages returned like

"The value cannot be less than or equal to zero." with out the actual missing parameter being shown in the error message

this is often seen when using the web tier tests

a quick search

http://www.google.com/codesearch?q=MgValueCannotBeLessThanOrEqualToZero&hl=en&btnG=Search+Code

show this is a common error and occurs for times in the Rendering service

http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Server/src/Services/Rendering/ServerRenderingService.cpp#L262

this makes using the mapagent really frustrating, copying and comparing urls to debug isn't fun

Attachments (1)

660.patch (10.7 KB ) - added by jng 14 years ago.
Patch to include more fine-grained error descriptions

Download all attachments as: .zip

Change History (5)

comment:1 by jbirch, 16 years ago

Summary: "The value cannot be less than or equal to zero." is meaningless with out contextUse more meaningful exception than "The value cannot be less than or equal to zero."
Type: defectenhancement

changed to enhancement request

comment:2 by jbirch, 15 years ago

Version: 2.0.1

Removing version from enhancement request. If this enhancement request has been addressed or is no longer required, please close ticket.

by jng, 14 years ago

Attachment: 660.patch added

Patch to include more fine-grained error descriptions

comment:3 by brucedechant, 14 years ago

Resolution: fixed
Status: newclosed

Fixed. r5456.

comment:4 by brucedechant, 14 years ago

Milestone: 2.3
Version: 2.2.0
Note: See TracTickets for help on using tickets.