1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | class WebpackPluginServeError extends Error {
|
12 | constructor(...args) {
|
13 | super(...args);
|
14 | this.name = 'WebpackPluginServeError';
|
15 | }
|
16 | }
|
17 |
|
18 | class PluginExistsError extends WebpackPluginServeError {
|
19 | constructor(...args) {
|
20 | super(...args);
|
21 | this.name = 'PluginExistsError';
|
22 | this.code = 'ERR_PLUGIN_EXISTS';
|
23 | }
|
24 | }
|
25 |
|
26 | class RamdiskPathError extends WebpackPluginServeError {
|
27 | constructor(...args) {
|
28 | super(...args);
|
29 | this.name = 'RamdiskPathError';
|
30 | this.code = 'ERR_RAMDISK_PATH';
|
31 | }
|
32 | }
|
33 |
|
34 | module.exports = { PluginExistsError, RamdiskPathError, WebpackPluginServeError };
|