All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add
define()
,isValidationError()
static method to theValidationError
object. b261662 eb2d8e2 - Add the generic type variable
Id
to theValidationError
. eb2d8e2 - Add
[Symbol.toStringTag]()
get accessor to return the object different class name. eb2d8e2 - Add
ValidationErrors
object that is is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theValidationError
type are prepared to throw. 43a0162 - Add
TypeErrors
object that is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theTypeError
type are prepared to throw. ff2feeb - Add
TypeError
object that is an extension of theCommonError
class and is thrown when an operation could not be performed, typically(but not exclusively) when a value is not of the expected type, with the message built from the described problem and its solution, optional an explicit identification and type, on the given or stored template. 8112c16 - Add
RangeErrors
object that is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theRangeError
type are prepared to throw. 72b8582 - Add
RangeError
object that is an extension of theCommonError
class and is thrown when a value is not in the set or range of allowed values with the message built from the described problem and its solution, optional explicit identification and minimum/maximum range on the given or stored template. 77e4e0a - Add
Errors
object that is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theError
type are prepared to throw. a5f391c - Add
Error
object that is an extension of theCommonError
class and is thrown when a runtime error occurs with a message built from a solution to the described problem but with additional identification, on the template. 789083e - Add
CommonErrors
object that represents the storage of errors with unique identification numbers. a17461b - Add
CommonError
abstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template. 9089375
- Change the
constructor()
of theValidationError
to use direct parameters instead of object. - Change
#tpl
property to#template
and the default value toProblem{id}: {problem} => Fix: {fix}
. - Change the property
name
toname
accessor.
- Remove
#callback
private property from theValidationError
to simplify the object. - Remove
VEAllowedCallback
type andErrorMessage
interface to simplify the object. 00229cd 30716b2 - Remove
set problem()
,set message()
,set fix()
,set template()
accessors of anValidationError
instance. b261662 - Remove
#guardMessage()
,#guardTemplate()
,defineMessage()
, static method from theValidationError()
. b261662 - Remove
updateMessage()
,throw()
,setTemplate()
,setProblem()
,setMessage()
,setFix()
instance method from theValidationError()
. b261662
ff06f3a
Fixedpackage.json
peer dependencies cause of@angular-package/callback
.
069d111
Add static private property#template
of astring
type.
Add private instance#callback
property ofCallback
instance.
Add private instance#fix
,#problem
,#tpl
property.
Add pubic methodssetFix()
,setMessage()
,setProblem()
,setTemplate()
,throw()
,updateMessage()
of an instance.
Add static private methods#guardMessage()
,#guardTemplate()
.4040750
Add an optional propertytemplate
to theErrorMessage
interface.0d5cc92
AddVEAllowedCallback
type of allowed names for internal instance ofCallback
.
069d111
Changed static publictemplate
property to use static private#template
property that is guarded by the private static#guardTemplate()
method.
Changed instancefix
property to use private#fix
.
Changed instanceproblem
property to use private#problem
.
Changed public staticdefineMessage()
method to use private static#guardMessage()
to guards the providedmessage
.
Changed constructor to use publicsetMessage()
method and add newcallback
parameter to handle private instance ofCallback
.0708846
bcc6521
0bbd886
UpdatedREADME.md
.
5427c65
Add message builder to api.
- Update
README.md
.
253dda9
Fixes thehomepage
link in thepackage.json
.
ab8729f
Remove unnecessary peer dependencies.