wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/data-bridge/src/data-access/error/SavingError.ts

Summary

Maintainability
A
0 mins
Test Coverage
import ApplicationError from '@/definitions/ApplicationError';

export default class SavingError extends Error {
    public readonly errors: readonly ApplicationError[];

    public constructor( errors: readonly ApplicationError[] ) {
        super( 'Saving failed.' );
        this.errors = errors;
    }
}