import { BaseException } from '@directus/shared/exceptions' ; type Exceptions = { collection : string ; field : string ; } ; export class NotNullViolationException extends BaseException { constructor ( field , exceptions ? ) { super ( `Value for field "${ field }" can't be null.` , 400 , 'NOT_NULL_VIOLATION' , exceptions ) ; } }