Compare commits
2 Commits
c2fdfeed4f
...
f289afd8bc
Author | SHA1 | Date | |
---|---|---|---|
f289afd8bc | |||
a9e06c9055 |
@ -24,6 +24,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@odit/class-validator-jsonschema": "2.1.1",
|
"@odit/class-validator-jsonschema": "2.1.1",
|
||||||
"argon2": "^0.27.1",
|
"argon2": "^0.27.1",
|
||||||
|
"axios": "^0.21.1",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"class-transformer": "0.3.1",
|
"class-transformer": "0.3.1",
|
||||||
"class-validator": "^0.13.1",
|
"class-validator": "^0.13.1",
|
||||||
@ -57,7 +58,6 @@
|
|||||||
"@types/jsonwebtoken": "^8.5.0",
|
"@types/jsonwebtoken": "^8.5.0",
|
||||||
"@types/node": "^14.14.22",
|
"@types/node": "^14.14.22",
|
||||||
"@types/uuid": "^8.3.0",
|
"@types/uuid": "^8.3.0",
|
||||||
"axios": "^0.21.1",
|
|
||||||
"cp-cli": "^2.0.0",
|
"cp-cli": "^2.0.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"nodemon": "^2.0.7",
|
"nodemon": "^2.0.7",
|
||||||
|
@ -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