@vitessce/error 3.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.js +51 -0
- package/dist-tsc/index.d.ts +16 -0
- package/dist-tsc/index.d.ts.map +1 -0
- package/dist-tsc/index.js +42 -0
- package/package.json +39 -0
- package/src/index.js +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
class VitessceError extends Error {
|
|
2
|
+
constructor(message) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.name = "VitessceError";
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
class LoaderNotFoundError extends VitessceError {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = "LoaderNotFoundError";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
class DataLoaderError extends VitessceError {
|
|
14
|
+
constructor(message) {
|
|
15
|
+
super(message);
|
|
16
|
+
this.name = "DataLoaderError";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
class JsonLoaderValidationError extends DataLoaderError {
|
|
20
|
+
constructor(message) {
|
|
21
|
+
super(message);
|
|
22
|
+
this.name = "JsonLoaderValidationError";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
class UnknownSpatialDataFormatError extends DataLoaderError {
|
|
26
|
+
constructor(message) {
|
|
27
|
+
super(message);
|
|
28
|
+
this.name = "UnknownSpatialDataFormatError";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
class DataFetchError extends DataLoaderError {
|
|
32
|
+
constructor(message) {
|
|
33
|
+
super(message);
|
|
34
|
+
this.name = "DataFetchError";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
class ZarrNodeNotFoundError extends DataLoaderError {
|
|
38
|
+
constructor(message) {
|
|
39
|
+
super(message);
|
|
40
|
+
this.name = "ZarrNodeNotFoundError";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
DataFetchError,
|
|
45
|
+
DataLoaderError,
|
|
46
|
+
JsonLoaderValidationError,
|
|
47
|
+
LoaderNotFoundError,
|
|
48
|
+
UnknownSpatialDataFormatError,
|
|
49
|
+
VitessceError,
|
|
50
|
+
ZarrNodeNotFoundError
|
|
51
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class VitessceError extends Error {
|
|
2
|
+
constructor(message: any);
|
|
3
|
+
}
|
|
4
|
+
export class LoaderNotFoundError extends VitessceError {
|
|
5
|
+
}
|
|
6
|
+
export class DataLoaderError extends VitessceError {
|
|
7
|
+
}
|
|
8
|
+
export class JsonLoaderValidationError extends DataLoaderError {
|
|
9
|
+
}
|
|
10
|
+
export class UnknownSpatialDataFormatError extends DataLoaderError {
|
|
11
|
+
}
|
|
12
|
+
export class DataFetchError extends DataLoaderError {
|
|
13
|
+
}
|
|
14
|
+
export class ZarrNodeNotFoundError extends DataLoaderError {
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AAAA;IACE,0BAGC;CACF;AAED;CAKC;AAED;CAKC;AAED;CAKC;AAED;CAKC;AAED;CAKC;AAED;CAKC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export class VitessceError extends Error {
|
|
2
|
+
constructor(message) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.name = 'VitessceError';
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export class LoaderNotFoundError extends VitessceError {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = 'LoaderNotFoundError';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export class DataLoaderError extends VitessceError {
|
|
14
|
+
constructor(message) {
|
|
15
|
+
super(message);
|
|
16
|
+
this.name = 'DataLoaderError';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class JsonLoaderValidationError extends DataLoaderError {
|
|
20
|
+
constructor(message) {
|
|
21
|
+
super(message);
|
|
22
|
+
this.name = 'JsonLoaderValidationError';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export class UnknownSpatialDataFormatError extends DataLoaderError {
|
|
26
|
+
constructor(message) {
|
|
27
|
+
super(message);
|
|
28
|
+
this.name = 'UnknownSpatialDataFormatError';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class DataFetchError extends DataLoaderError {
|
|
32
|
+
constructor(message) {
|
|
33
|
+
super(message);
|
|
34
|
+
this.name = 'DataFetchError';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export class ZarrNodeNotFoundError extends DataLoaderError {
|
|
38
|
+
constructor(message) {
|
|
39
|
+
super(message);
|
|
40
|
+
this.name = 'ZarrNodeNotFoundError';
|
|
41
|
+
}
|
|
42
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vitessce/error",
|
|
3
|
+
"version": "3.6.8",
|
|
4
|
+
"author": "HIDIVE Lab at HMS",
|
|
5
|
+
"homepage": "http://vitessce.io",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/vitessce/vitessce.git"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"src",
|
|
15
|
+
"dist",
|
|
16
|
+
"dist-tsc"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"react": "^18.0.0",
|
|
21
|
+
"react-dom": "^18.0.0",
|
|
22
|
+
"vite": "^6.3.5",
|
|
23
|
+
"vitest": "^3.1.4"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"bundle": "pnpm exec vite build -c ../../scripts/vite.config.js",
|
|
30
|
+
"test": "pnpm exec vitest --run"
|
|
31
|
+
},
|
|
32
|
+
"module": "dist/index.js",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist-tsc/index.d.ts",
|
|
36
|
+
"import": "./dist/index.js"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export class VitessceError extends Error {
|
|
2
|
+
constructor(message) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.name = 'VitessceError';
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class LoaderNotFoundError extends VitessceError {
|
|
9
|
+
constructor(message) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.name = 'LoaderNotFoundError';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class DataLoaderError extends VitessceError {
|
|
16
|
+
constructor(message) {
|
|
17
|
+
super(message);
|
|
18
|
+
this.name = 'DataLoaderError';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class JsonLoaderValidationError extends DataLoaderError {
|
|
23
|
+
constructor(message) {
|
|
24
|
+
super(message);
|
|
25
|
+
this.name = 'JsonLoaderValidationError';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class UnknownSpatialDataFormatError extends DataLoaderError {
|
|
30
|
+
constructor(message) {
|
|
31
|
+
super(message);
|
|
32
|
+
this.name = 'UnknownSpatialDataFormatError';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class DataFetchError extends DataLoaderError {
|
|
37
|
+
constructor(message) {
|
|
38
|
+
super(message);
|
|
39
|
+
this.name = 'DataFetchError';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class ZarrNodeNotFoundError extends DataLoaderError {
|
|
44
|
+
constructor(message) {
|
|
45
|
+
super(message);
|
|
46
|
+
this.name = 'ZarrNodeNotFoundError';
|
|
47
|
+
}
|
|
48
|
+
}
|