Anonymous | Login | 2025-02-18 09:35 CST | ![]() |
My View | View Issues |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0000226 | Rosetta | [All Projects] Input Handling | public | 2013-03-21 12:15 | 2013-03-21 15:08 | ||||||||
Reporter | smlewis | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Platform | OS | OS Version | |||||||||||
Product Version | |||||||||||||
Fixed in Version | |||||||||||||
Summary | 0000226: Feature Request: catch option-system throws locally; handle them somewhat more fancily | ||||||||||||
Description | Mike Tyka added the feature for the option system to throw exceptions for erroneous options. This feature request is to extend that a bit. There are (at least) two types of bad options: A) Correct but insufficiently specific option (did you mean -packing:repack_only, or -somethingelse:repack_only?) B) Never-correct options (-this_option_does_not_exist) For exception type A (some exception subclass), print a message of what the other choices are (this code already exists), then re-throw for a potential re-handing at executable level. For B (different exception class), print whatever -help would print, then re-throw for the executable to handle if it can. We need to re-throw in all cases because A) our all-executables-catch test depends on catching a badly formatted option and B) the executable may know much more about what options were meant than we do in core::init. | ||||||||||||
Tags | No tags attached. | ||||||||||||
Application(s) Affected | exception handling | ||||||||||||
Command Line Used | exception handling | ||||||||||||
Developer Options | Feature Request | ||||||||||||
Fixed in SVN Version | |||||||||||||
Attached Files | |||||||||||||
![]() |
||||||||||||||||
|
![]() |
|||
Date Modified | Username | Field | Change |
2013-03-21 12:15 | smlewis | New Issue | |
2013-03-21 12:16 | smlewis | Relationship added | related to 0000200 |
2013-03-21 12:16 | smlewis | Relationship added | related to 0000168 |
2013-03-21 12:16 | smlewis | Relationship added | related to 0000189 |
Copyright © 2000 - 2012 MantisBT Group |