UNPKG

@yandex/themekit

Version:

Build system of design-tokens for any platforms

33 lines (32 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SourcesNotDefined = exports.UnsupportedExtension = exports.NotFoundTheme = exports.NotFoundConfig = void 0; class NotFoundConfig extends Error { constructor(path) { super(`Cannot find config "${path}", please check path.`); } } exports.NotFoundConfig = NotFoundConfig; class NotFoundTheme extends Error { constructor(path, isExtended) { if (isExtended) { super(`Cannot find extended theme "${path}".`); } else { super(`Cannot find theme "${path}".`); } } } exports.NotFoundTheme = NotFoundTheme; class UnsupportedExtension extends Error { constructor(path) { super(`Unsupported file extension: "${path}".`); } } exports.UnsupportedExtension = UnsupportedExtension; class SourcesNotDefined extends Error { constructor(path) { super(`Property "sources" is not defined, please check theme: "${path}".`); } } exports.SourcesNotDefined = SourcesNotDefined;