Changed error handling to avoid exceptions

Authored by tbaumgart on Jan 8 2019, 4:44 PM.

Description

Changed error handling to avoid exceptions

Throwing exceptions was not an elegant solution here. Returning an
invalid date and having errorCode and errorMessage methods to provide
information about the last conversion seems to be a better solution.

In the process, I also cleaned up the interface a bit and hide
implementation details behind a d-pointer.

Reviewed By: habacker
Differential Revision: https://phabricator.kde.org/D18073

Details

Committed
habackerJan 8 2019, 4:57 PM
Reviewer
habacker
Differential Revision
D18073: Changed error handling to avoid exceptions
Parents
R471:c0f25e02a7ca: Exclude not working skrooge date format test for Qt4
Branches
Unknown
Tags
Unknown
References
tag: 8.0.0