You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All exeptions are available in th object : Fmk.Helpers.Exceptions or Focus.Helpers.Exceptions
See file
** ArgumentNullException ** => To use when a propery is null and shouldn't be
** ArgumentInvalidException ** => To use when a propery is not null but has the wrong value or the wrong type.
** NotImplementedException ** => To use when a function is not implemented
** DependencyException ** => To use when a dependency is missing
They all have a similar signature. Exception(message, context)
varArgumentInvalidException=Fmk.Helpers.Exceptions.ArgumentInvalidException;functionsaveObject(jsonObject){if(!_.isObject(jsonObject)){thrownewArgumentInvalidException("jsonObject should be an object",jsonObject);}}
Really often these Exceptions should be use after testing properties with underscore.
All types has a function associated: