March 08, 2007 Phobos std.conv.convError ... | ||||
|---|---|---|---|---|
| ||||
Rigth from the doc:
class ConvError : object.Error {...}
Thrown on conversion errors, which happens on deviation from the grammar.
class ConvOverflowError : object.Error {...}
Thrown on conversion overflow errors.
Why from Error? A string parsing failure is recoverable; shouldn't these derive from Exception instead?
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply