parent
a9e06c9055
commit
f289afd8bc
@ -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.
|
* Error to throw when a permission couldn't be found.
|
||||||
*/
|
*/
|
||||||
export class MailServerConfigError extends Error {
|
export class MailSendingError extends InternalServerError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "MailServerConfigError"
|
name = "MailSendingError"
|
||||||
|
|
||||||
@IsString()
|
@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!");
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user