Basic setup
The process already performed in the previous filter.
@Catch(QueryFailedError)
export class DatabaseExceptionFilter extends BaseExceptionFilter {
catch(exception: QueryFailedError, host: ArgumentsHost) {}
}export interface DatabaseError {
readonly code: string;
readonly detail: string;
readonly table: string;
}exception: DatabaseErrorLast updated