oh-my-error@2.0.0
·
12 commits
to main
since this release
Major Changes
- 4c9780c: - Add type
StatusCode- Add missing TSDocs
- Change enum StatusCode to object
- 4f04fe2: - Add new Error Types, New Functions and Features to current existing functions
- Add
statusCodesenum. - Refactored
MyError=>myError, currently it's error object handler before throw. - Added new Feature to
myErrorWrapper- Instant throw error, no need to use condition withisErrorto throw Error. - Added
myErrorWrapperAsyncwhich ismyErrorWrapperalternative for async functions. - Refactored
TMyError- renamedTMyError=>IMyError, changed fromtypetointerfaceand structure. - Add new Error (Organism) Interfaces
IMyError,IMyErrorAPI,IMyErrorRateLimit,IMyErrorValidation - Add new Error (Atom) types
TSeverity,TSeverity2,TErrorMessages,TErrorMessagesExt,TMyErrorList,TErrorList,TCauseError,TDetails,TBaseError,TBaseErrorExt,TValidationError,TApiError,TApiRateLimit,
- Add
Minor Changes
- b9d8ffa: - Add passing Throwed Error to our error at
myErrorWrapper- Add types
TValueOrFunctionAllandTValueOrFunction - Add missing TSDocs to types
- Change myErrorHandler arg[0] type (added unknown)
- Add types
- 12098d8: - Add new Error Types, New Functions and Features to current existing functions
myErrorWrapperAsyncimplemented to currentmyErrorWrappermyErrorWrapperAsyncremoved
Patch Changes
- 4c9780c: - Add type
StatusCode- Add missing TSDocs
- Change enum StatusCode to object