@fc3/errors
v0.0.15
Published
A common set of errors for use across projects
Downloads
7
Readme
errors
A common set of errors for use across projects. You should use these errors whenever possible so that the types of errors that occur in various projects are as similar to each other as possible.
Installing
circe install errors
Usage
import {NotFoundError} from '@fc3/errors';
if (account === undefined) {
throw new NotFoundError('Unable to find account for this user');
}
Available errors
ConflictError
GenericError
InvalidJsonError
InvalidError
NotFoundError
NotImplementedError
TimeoutError
UnauthorizedError