import { ValidationError } from './run' ; import { UpgradesError } from '../error' ; import { UpgradeableContractErrorReport } from './report' ; export class ValidationErrors extends UpgradesError { constructor ( contractName , readonly errors ) { super ( `Contract \`${ contractName }\` is not upgrade safe` , ( ) => new UpgradeableContractErrorReport ( errors ) . explain ( ) ) ; } }