aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/exceptn.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix missing ErrorType::RoughtimeError on switchesNuno Goncalves2019-10-161-0/+2
| | | | Signed-off-by: Nuno Goncalves <[email protected]>
* Add a DatabaseError type, set the sqlite return code in exceptionJack Lloyd2019-05-231-54/+56
|
* use ErrorType instead of TLS::error and remove convert_exceptions headerHannes Rantzsch2019-04-231-0/+58
|
* Rename Integrity_Failure to Invalid_Authentication_TagJack Lloyd2019-01-181-2/+2
| | | | | | | | | This makes the meaning and usage more clear. Add a specific error type so invalid tags can be distinguished without having to catch that specific type. See also #1813
* Initialize System_Error::m_error_codeJack Lloyd2018-12-231-1/+2
| | | | Actual bug, flagged by Coverity
* Make exceptions easier to translate to error codesJack Lloyd2018-11-231-0/+4
| | | | | | | | | | | Avoid throwing base Botan::Exception type, as it is difficult to determine what the error is in that case. Add Exception::error_code and Exception::error_type which allows (for error code) more information about the error and (for error type) allows knowing the error type without requiring a sequence of catches. See GH #1742
* Simplify exception messagesJack Lloyd2018-08-221-4/+15
| | | | Remove "Invalid argument" and "Decoding Error" prefixes
* Add a second constructor to Decoding_Error which takes an exception string.Jack Lloyd2017-11-141-0/+3
|
* Add checks that keyed algorithms are actually keyed before useJack Lloyd2017-10-261-0/+4
| | | | | Previously calling update or encrypt without calling set_key first would result in invalid outputs or else crashing.
* Undeprecate these exceptionsJack Lloyd2017-10-191-0/+3
| | | | Cannot figure out how to get MSVC to shut up
* Another attempt at silencing MSVC warningJack Lloyd2017-10-191-4/+0
|
* De-inline bodies of exception classesJack Lloyd2017-10-151-0/+99
This leads to a rather shocking decrease in binary sizes, especially the static library (~1.5 MB reduction). Saves 60KB in the shared lib. Since throwing or catching an exception is relatively expensive these not being inlined is not a problem in that sense. It had simply not occured to me that it would take up so much extra space in the binary.