12
									
								
								src/errors/MailErrors.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								src/errors/MailErrors.ts
									
									
									
									
									
										Normal 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!"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user