Spaces:
Running
Running
Download modules/space_exploration/src/domain/errors.js from CREATORJD/massfront-playtest: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/CREATORJD/massfront-playtest/resolve/main/modules/space_exploration/src/domain/errors.js
- Command line
-
hf download hf://spaces/CREATORJD/massfront-playtest/modules/space_exploration/src/domain/errors.js
-
curl -L -o errors.js https://huggingface.co/spaces/CREATORJD/massfront-playtest/resolve/main/modules/space_exploration/src/domain/errors.js
326 Bytes
| export class DomainValidationError extends Error { | |
| constructor(message, issues = [], code = 'DOMAIN_VALIDATION_FAILED') { | |
| super(message); | |
| this.name = 'DomainValidationError'; | |
| this.code = code; | |
| this.issues = issues; | |
| } | |
| } | |
| export function issue(code, message, path = '') { | |
| return { code, message, path }; | |
| } | |