Added the first mail error

ref #118
This commit is contained in:
Nicolai Ort 2021-01-26 17:20:55 +01:00
parent 78d2ac3027
commit c418603423
1 changed files with 12 additions and 0 deletions

12
src/errors/MailErrors.ts Normal file
View File

@ -0,0 +1,12 @@
import { IsString } from 'class-validator'
/**
* Error to throw when a permission couldn't be found.
*/
export class MailServerConfigError extends Error {
@IsString()
name = "MailServerConfigError"
@IsString()
message = "The SMTP server you provided couldn't be reached!"
}