Changelog
1.0.0 (2020-12-11)
create
function as an argument, ensure
will create and
return an Exception instead of a plain Error when its first argument is not an error. This Exception
instance will have its data field
populated with the element passed ensure
as an error.ensure
used to take an EnsureCreateOptions object as a second argument allowing
to specify the input types that, when not an error, would be casted into a string for the new Error
to have as message. The new implementation casts all non Error input types into a string to use as a
message. Otherwise, passing an Error creating function as a second argument remains possible.Changelog
0.5.0 (2019-12-23)
Changelog
0.4.0 (2019-05-13)
data
was the second argument and source
the third for the
Errorish class constructor, now source
is the second and data
the thirdChangelog
0.2.0 (2019-04-21)
Changelog
0.1.0 (2019-04-18)