It shows how RequestValidationError and DatabaseConnectionError extend the abstract class CustomError which forces these custom errors to implement the serializeError method and the statusCode property.
Se muestra como RequestValidationError y DatabaseConnectionError hacen extensión de la clase abstracta CustomError la cual obliga a estos errores customizados a implementar el método serializeError y la propiedad statusCode.

Volver al artículo