Opened 12 years ago

Closed 10 years ago

Last modified 10 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 10 years ago.
Patch to include more fine-grained error descriptions

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by jbirch

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 Changed 11 years ago by jbirch

Version: 2.0.1

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

Changed 10 years ago by jng

Attachment: 660.patch added

Patch to include more fine-grained error descriptions

comment:3 Changed 10 years ago by brucedechant

Resolution: fixed
Status: newclosed

Fixed. r5456.

comment:4 Changed 10 years ago by brucedechant

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