Features for the new selfservice feature/151-selfservice_scans_mails #152

Merged
niggl merged 25 commits from feature/151-selfservice_scans_mails into dev 2021-03-04 16:03:08 +00:00
Showing only changes of commit f289afd8bc - Show all commits

View File

@ -1,12 +1,17 @@
import { IsString } from 'class-validator'
import { IsString } from 'class-validator';
import { InternalServerError } from 'routing-controllers';
/**
* Error to throw when a permission couldn't be found.
*/
export class MailServerConfigError extends Error {
export class MailSendingError extends InternalServerError {
@IsString()
name = "MailServerConfigError"
name = "MailSendingError"
@IsString()
message = "The SMTP server you provided couldn't be reached!"
message = "We had a problem sending the mail!"
constructor() {
super("We had a problem sending the mail!");
}
}