Polymorphic return values are a horrible idea, but this library was written based on the notion that they were useful. Often, we just want to know if something worked or not. Other times, we'd like to know what the error text was. Still others, we may want to know what the error code was, and what the error properties were. We don't want to handle objects or data structures for every single return value, but we do want to check error conditions in our code because that's what good programmers do.
When functions are successful they may return true, or perhaps some useful data. In the quest to provide consistent return values, this gets confusing between complex, informational errors and successful return values.
This module provides these features with a simplistic API that should get you what you're looking for in each context a return value is used in.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.666005-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
1.666005-bp155.2.10 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
1.666005-bp154.1.22 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
1.666005-bp153.1.15 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
1.666005-bp152.3.15 info | GA Release | 2020-04-16 | 15 SP2 |
|
|
1.666005-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
1.666005-bp151.2.14 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
1.666005-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|