Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
346 Bytes
// Taken from https://github.com/kadirahq/graphql-errors
export const IsUserError = Symbol('IsUserError');
class UserError extends Error {
constructor(...args) {
super(...args);
this.name = 'Error';
this.message = args[0];
this[IsUserError] = true;
Error.captureStackTrace(this, 'Error');
}
}
export default UserError;