// SPDX-License-Identifier: Apache-2.0
import { ValidationError } from "./ValidationError";
export class Validation {
    static handleValidation = (name, args) => {
        const validation = args.validate();
        if (validation.length > 0)
            throw new ValidationError(name, validation);
    };
}
