Exercism-JS/translation-service/errors.js
Andrew W 3083663a71 completed ozans-playlist,
started translation-service
2022-05-16 12:57:26 -05:00

28 lines
453 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export class NotAvailable extends Error {
constructor(text) {
super(
`
The requested text "${text}" has not been translated yet.
`.trim()
);
}
}
export class AbusiveClientError extends Error {
constructor() {
super(
`
Your client has been rejected because of abusive behaviour.
naDevvo yIghoS!
`.trim()
);
}
}
export class Untranslatable extends Error {
constructor() {
super('jIyajbe');
}
}