Commit Graph

6 Commits (a2084e296af8f90fb2a0c1c3b0277215d1a0188d)

Author SHA1 Message Date
BodgeMaster a2084e296a lib/error: Remove ErrorOr<T>(bool) constructor
This allows ErrorOr<T> to be used for bool, as there would be conflicting
constructors otherwise.

Also, we have ErrorCodes::UNKNOWN now so, instead of `ErrorOr<T>(true)`,
`ErrorOr<T>(true, ErrorCodes::UNKNOWN)` can be used.
2022-07-14 03:58:13 +02:00
BodgeMaster 7e049fcfd1 lib/error: rename and add error constants 2022-07-13 22:01:18 +02:00
BodgeMaster 71fab21dfb Error: add OVERRUN_ERROR 2022-06-29 11:32:33 +02:00
BodgeMaster 83d606a2c7 Error: Add error codes to ErrorOr<> and add constructors
This allows us to handle functions that can fail in multiple different ways
2022-06-28 16:01:39 +02:00
BodgeMaster b0bd027898 Add license and copyright notices 2022-06-27 11:46:13 +02:00
BodgeMaster 5ea835dbb5 add Serenity-style ErrorOr<> type 2022-06-27 04:46:22 +02:00