@dev-ecosystem/core 0.1.0
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/README.md +0 -0
- package/dist/capabilities/devforge.capabilities.json +0 -0
- package/dist/capabilities/mediaproc.capabilities.json +0 -0
- package/dist/capabilities/orbyt.capabilities.json +0 -0
- package/dist/capabilities/vaulta.capabilities.json +0 -0
- package/dist/contracts/adapter.contract.d.ts +1 -0
- package/dist/contracts/adapter.contract.d.ts.map +1 -0
- package/dist/contracts/adapter.contract.js +2 -0
- package/dist/contracts/adapter.contract.js.map +1 -0
- package/dist/contracts/cli.contract.d.ts +1 -0
- package/dist/contracts/cli.contract.d.ts.map +1 -0
- package/dist/contracts/cli.contract.js +2 -0
- package/dist/contracts/cli.contract.js.map +1 -0
- package/dist/contracts/engine.contract.d.ts +1 -0
- package/dist/contracts/engine.contract.d.ts.map +1 -0
- package/dist/contracts/engine.contract.js +2 -0
- package/dist/contracts/engine.contract.js.map +1 -0
- package/dist/contracts/plugin.contract.d.ts +1 -0
- package/dist/contracts/plugin.contract.d.ts.map +1 -0
- package/dist/contracts/plugin.contract.js +2 -0
- package/dist/contracts/plugin.contract.js.map +1 -0
- package/dist/contracts/vault.contract.d.ts +1 -0
- package/dist/contracts/vault.contract.d.ts.map +1 -0
- package/dist/contracts/vault.contract.js +2 -0
- package/dist/contracts/vault.contract.js.map +1 -0
- package/dist/contracts/workflow.contract.d.ts +1 -0
- package/dist/contracts/workflow.contract.d.ts.map +1 -0
- package/dist/contracts/workflow.contract.js +2 -0
- package/dist/contracts/workflow.contract.js.map +1 -0
- package/dist/errors/BaseError.d.ts +108 -0
- package/dist/errors/BaseError.d.ts.map +1 -0
- package/dist/errors/BaseError.js +163 -0
- package/dist/errors/BaseError.js.map +1 -0
- package/dist/errors/ErrorCodes.d.ts +111 -0
- package/dist/errors/ErrorCodes.d.ts.map +1 -0
- package/dist/errors/ErrorCodes.js +130 -0
- package/dist/errors/ErrorCodes.js.map +1 -0
- package/dist/errors/ErrorTypes.d.ts +144 -0
- package/dist/errors/ErrorTypes.d.ts.map +1 -0
- package/dist/errors/ErrorTypes.js +172 -0
- package/dist/errors/ErrorTypes.js.map +1 -0
- package/dist/errors/devforge.codes.d.ts +71 -0
- package/dist/errors/devforge.codes.d.ts.map +1 -0
- package/dist/errors/devforge.codes.js +84 -0
- package/dist/errors/devforge.codes.js.map +1 -0
- package/dist/errors/devforge.errors.d.ts +126 -0
- package/dist/errors/devforge.errors.d.ts.map +1 -0
- package/dist/errors/devforge.errors.js +139 -0
- package/dist/errors/devforge.errors.js.map +1 -0
- package/dist/errors/index.d.ts +22 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +37 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/mediaproc.codes.d.ts +92 -0
- package/dist/errors/mediaproc.codes.d.ts.map +1 -0
- package/dist/errors/mediaproc.codes.js +108 -0
- package/dist/errors/mediaproc.codes.js.map +1 -0
- package/dist/errors/mediaproc.errors.d.ts +120 -0
- package/dist/errors/mediaproc.errors.d.ts.map +1 -0
- package/dist/errors/mediaproc.errors.js +133 -0
- package/dist/errors/mediaproc.errors.js.map +1 -0
- package/dist/errors/orbyt.errors.d.ts +168 -0
- package/dist/errors/orbyt.errors.d.ts.map +1 -0
- package/dist/errors/orbyt.errors.js +187 -0
- package/dist/errors/orbyt.errors.js.map +1 -0
- package/dist/errors/vaulta.codes.d.ts +81 -0
- package/dist/errors/vaulta.codes.d.ts.map +1 -0
- package/dist/errors/vaulta.codes.js +94 -0
- package/dist/errors/vaulta.codes.js.map +1 -0
- package/dist/errors/vaulta.errors.d.ts +135 -0
- package/dist/errors/vaulta.errors.d.ts.map +1 -0
- package/dist/errors/vaulta.errors.js +154 -0
- package/dist/errors/vaulta.errors.js.map +1 -0
- package/dist/exit-codes/ExitCodes.d.ts +136 -0
- package/dist/exit-codes/ExitCodes.d.ts.map +1 -0
- package/dist/exit-codes/ExitCodes.js +229 -0
- package/dist/exit-codes/ExitCodes.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/LogFormat.d.ts +1 -0
- package/dist/logging/LogFormat.d.ts.map +1 -0
- package/dist/logging/LogFormat.js +2 -0
- package/dist/logging/LogFormat.js.map +1 -0
- package/dist/manifests/adapter.manifest.json +0 -0
- package/dist/manifests/plugin.manifest.json +0 -0
- package/dist/manifests/workflow.manifest.json +0 -0
- package/dist/schemas/adapter.schema.json +0 -0
- package/dist/schemas/capability.schem.json +0 -0
- package/dist/schemas/index.d.ts +401 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +107 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/manifest.schame.json +0 -0
- package/dist/schemas/plugin.schema.json +0 -0
- package/dist/schemas/workflow.schema.json +485 -0
- package/dist/schemas/workflow.schema.zod.d.ts +450 -0
- package/dist/schemas/workflow.schema.zod.d.ts.map +1 -0
- package/dist/schemas/workflow.schema.zod.js +234 -0
- package/dist/schemas/workflow.schema.zod.js.map +1 -0
- package/dist/types/adapter.types.d.ts +1 -0
- package/dist/types/adapter.types.d.ts.map +1 -0
- package/dist/types/adapter.types.js +2 -0
- package/dist/types/adapter.types.js.map +1 -0
- package/dist/types/global.types.d.ts +1 -0
- package/dist/types/global.types.d.ts.map +1 -0
- package/dist/types/global.types.js +2 -0
- package/dist/types/global.types.js.map +1 -0
- package/dist/types/plugin.types.d.ts +1 -0
- package/dist/types/plugin.types.d.ts.map +1 -0
- package/dist/types/plugin.types.js +2 -0
- package/dist/types/plugin.types.js.map +1 -0
- package/dist/types/workflow.types.d.ts +503 -0
- package/dist/types/workflow.types.d.ts.map +1 -0
- package/dist/types/workflow.types.js +90 -0
- package/dist/types/workflow.types.js.map +1 -0
- package/dist/utils/assert.d.ts +1 -0
- package/dist/utils/assert.d.ts.map +1 -0
- package/dist/utils/assert.js +2 -0
- package/dist/utils/assert.js.map +1 -0
- package/package.json +30 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Devforge Error Classes
|
|
3
|
+
*
|
|
4
|
+
* Concrete error implementations for the Devforge project scaffolding tool.
|
|
5
|
+
* All errors extend BaseError and use DevforgeErrorCodes.
|
|
6
|
+
*
|
|
7
|
+
* @category Devforge
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
import { BaseError } from './BaseError.js';
|
|
11
|
+
import { ErrorType, ErrorSeverity } from './ErrorTypes.js';
|
|
12
|
+
import { ExitCodes } from '../exit-codes/ExitCodes.js';
|
|
13
|
+
import { DevforgeErrorCodes } from './devforge.codes.js';
|
|
14
|
+
// ============================================================================
|
|
15
|
+
// TEMPLATE ERRORS
|
|
16
|
+
// ============================================================================
|
|
17
|
+
export class TemplateNotFoundError extends BaseError {
|
|
18
|
+
component = 'devforge';
|
|
19
|
+
type = ErrorType.USER;
|
|
20
|
+
code = DevforgeErrorCodes.TEMPLATE_NOT_FOUND;
|
|
21
|
+
exitCode = ExitCodes.INVALID_INPUT;
|
|
22
|
+
severity = ErrorSeverity.MEDIUM;
|
|
23
|
+
}
|
|
24
|
+
export class TemplateParseError extends BaseError {
|
|
25
|
+
component = 'devforge';
|
|
26
|
+
type = ErrorType.INTERNAL;
|
|
27
|
+
code = DevforgeErrorCodes.TEMPLATE_PARSE_FAILED;
|
|
28
|
+
exitCode = ExitCodes.INTERNAL_ERROR;
|
|
29
|
+
severity = ErrorSeverity.HIGH;
|
|
30
|
+
}
|
|
31
|
+
export class TemplateStructureError extends BaseError {
|
|
32
|
+
component = 'devforge';
|
|
33
|
+
type = ErrorType.USER;
|
|
34
|
+
code = DevforgeErrorCodes.TEMPLATE_STRUCTURE_INVALID;
|
|
35
|
+
exitCode = ExitCodes.INVALID_SCHEMA;
|
|
36
|
+
severity = ErrorSeverity.MEDIUM;
|
|
37
|
+
}
|
|
38
|
+
export class TemplateRenderError extends BaseError {
|
|
39
|
+
component = 'devforge';
|
|
40
|
+
type = ErrorType.EXECUTION;
|
|
41
|
+
code = DevforgeErrorCodes.TEMPLATE_RENDER_FAILED;
|
|
42
|
+
exitCode = ExitCodes.STEP_FAILED;
|
|
43
|
+
severity = ErrorSeverity.MEDIUM;
|
|
44
|
+
}
|
|
45
|
+
// ============================================================================
|
|
46
|
+
// FEATURE ERRORS
|
|
47
|
+
// ============================================================================
|
|
48
|
+
export class FeatureConflictError extends BaseError {
|
|
49
|
+
component = 'devforge';
|
|
50
|
+
type = ErrorType.USER;
|
|
51
|
+
code = DevforgeErrorCodes.FEATURE_CONFLICT;
|
|
52
|
+
exitCode = ExitCodes.INVALID_INPUT;
|
|
53
|
+
severity = ErrorSeverity.MEDIUM;
|
|
54
|
+
}
|
|
55
|
+
export class FeatureNotFoundError extends BaseError {
|
|
56
|
+
component = 'devforge';
|
|
57
|
+
type = ErrorType.USER;
|
|
58
|
+
code = DevforgeErrorCodes.FEATURE_NOT_FOUND;
|
|
59
|
+
exitCode = ExitCodes.INVALID_INPUT;
|
|
60
|
+
severity = ErrorSeverity.MEDIUM;
|
|
61
|
+
}
|
|
62
|
+
export class FeatureIncompatibleError extends BaseError {
|
|
63
|
+
component = 'devforge';
|
|
64
|
+
type = ErrorType.USER;
|
|
65
|
+
code = DevforgeErrorCodes.FEATURE_INCOMPATIBLE;
|
|
66
|
+
exitCode = ExitCodes.INVALID_INPUT;
|
|
67
|
+
severity = ErrorSeverity.MEDIUM;
|
|
68
|
+
}
|
|
69
|
+
export class FeatureInstallError extends BaseError {
|
|
70
|
+
component = 'devforge';
|
|
71
|
+
type = ErrorType.EXECUTION;
|
|
72
|
+
code = DevforgeErrorCodes.FEATURE_INSTALL_FAILED;
|
|
73
|
+
exitCode = ExitCodes.STEP_FAILED;
|
|
74
|
+
severity = ErrorSeverity.HIGH;
|
|
75
|
+
}
|
|
76
|
+
// ============================================================================
|
|
77
|
+
// GENERATION ERRORS
|
|
78
|
+
// ============================================================================
|
|
79
|
+
export class ProjectGenerationError extends BaseError {
|
|
80
|
+
component = 'devforge';
|
|
81
|
+
type = ErrorType.EXECUTION;
|
|
82
|
+
code = DevforgeErrorCodes.PROJECT_GENERATION_FAILED;
|
|
83
|
+
exitCode = ExitCodes.STEP_FAILED;
|
|
84
|
+
severity = ErrorSeverity.HIGH;
|
|
85
|
+
}
|
|
86
|
+
export class ProjectAlreadyExistsError extends BaseError {
|
|
87
|
+
component = 'devforge';
|
|
88
|
+
type = ErrorType.USER;
|
|
89
|
+
code = DevforgeErrorCodes.PROJECT_ALREADY_EXISTS;
|
|
90
|
+
exitCode = ExitCodes.INVALID_INPUT;
|
|
91
|
+
severity = ErrorSeverity.MEDIUM;
|
|
92
|
+
}
|
|
93
|
+
export class FileGenerationError extends BaseError {
|
|
94
|
+
component = 'devforge';
|
|
95
|
+
type = ErrorType.EXECUTION;
|
|
96
|
+
code = DevforgeErrorCodes.FILE_GENERATION_FAILED;
|
|
97
|
+
exitCode = ExitCodes.FILESYSTEM_ERROR;
|
|
98
|
+
severity = ErrorSeverity.MEDIUM;
|
|
99
|
+
}
|
|
100
|
+
export class DirectoryCreationError extends BaseError {
|
|
101
|
+
component = 'devforge';
|
|
102
|
+
type = ErrorType.EXECUTION;
|
|
103
|
+
code = DevforgeErrorCodes.DIRECTORY_CREATION_FAILED;
|
|
104
|
+
exitCode = ExitCodes.FILESYSTEM_ERROR;
|
|
105
|
+
severity = ErrorSeverity.MEDIUM;
|
|
106
|
+
}
|
|
107
|
+
export class DependencyInstallError extends BaseError {
|
|
108
|
+
component = 'devforge';
|
|
109
|
+
type = ErrorType.EXECUTION;
|
|
110
|
+
code = DevforgeErrorCodes.DEPENDENCY_INSTALL_FAILED;
|
|
111
|
+
exitCode = ExitCodes.STEP_FAILED;
|
|
112
|
+
severity = ErrorSeverity.HIGH;
|
|
113
|
+
retryable = true;
|
|
114
|
+
}
|
|
115
|
+
// ============================================================================
|
|
116
|
+
// CONFIGURATION ERRORS
|
|
117
|
+
// ============================================================================
|
|
118
|
+
export class DevforgeConfigurationError extends BaseError {
|
|
119
|
+
component = 'devforge';
|
|
120
|
+
type = ErrorType.CONFIG;
|
|
121
|
+
code = DevforgeErrorCodes.CONFIG_INVALID;
|
|
122
|
+
exitCode = ExitCodes.INVALID_CONFIG;
|
|
123
|
+
severity = ErrorSeverity.MEDIUM;
|
|
124
|
+
}
|
|
125
|
+
export class ConfigNotFoundError extends BaseError {
|
|
126
|
+
component = 'devforge';
|
|
127
|
+
type = ErrorType.CONFIG;
|
|
128
|
+
code = DevforgeErrorCodes.CONFIG_NOT_FOUND;
|
|
129
|
+
exitCode = ExitCodes.MISSING_CONFIG;
|
|
130
|
+
severity = ErrorSeverity.MEDIUM;
|
|
131
|
+
}
|
|
132
|
+
export class ConfigParseError extends BaseError {
|
|
133
|
+
component = 'devforge';
|
|
134
|
+
type = ErrorType.CONFIG;
|
|
135
|
+
code = DevforgeErrorCodes.CONFIG_PARSE_FAILED;
|
|
136
|
+
exitCode = ExitCodes.INVALID_FORMAT;
|
|
137
|
+
severity = ErrorSeverity.MEDIUM;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=devforge.errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devforge.errors.js","sourceRoot":"","sources":["../../src/errors/devforge.errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IACzC,SAAS,GAAG,UAAU,CAAC;IACvB,IAAI,GAAG,SAAS,CAAC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G,SAAS,CAAC,MAAM,CAAC;IACxB,IAAI,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAC3C,QAAQ,GAAG,SAAS,CAAC,cAAc,CAAC;IAC3B,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC;CACnD;AAED,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IACpC,SAAS,GAAG,UAAU,CAAC;IACvB,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC;IACxB,IAAI,GAAG,kBAAkB,CAAC,mBAAmB,CAAC;IAC9C,QAAQ,GAAG,SAAS,CAAC,cAAc,CAAC;IAC3B,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC;CACnD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ecosystem Error System - Central Exports
|
|
3
|
+
*
|
|
4
|
+
* This module provides a unified interface to the ecosystem's comprehensive
|
|
5
|
+
* error handling system. All error types, codes, and concrete error classes
|
|
6
|
+
* are exported from this single entry point.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
* @module @ecosystem/core/errors
|
|
10
|
+
*/
|
|
11
|
+
export * from '../exit-codes/ExitCodes.js';
|
|
12
|
+
export * from './ErrorTypes.js';
|
|
13
|
+
export * from './BaseError.js';
|
|
14
|
+
export * from './ErrorCodes.js';
|
|
15
|
+
export * from './mediaproc.codes.js';
|
|
16
|
+
export * from './vaulta.codes.js';
|
|
17
|
+
export * from './devforge.codes.js';
|
|
18
|
+
export * from './orbyt.errors.js';
|
|
19
|
+
export * from './mediaproc.errors.js';
|
|
20
|
+
export * from './vaulta.errors.js';
|
|
21
|
+
export * from './devforge.errors.js';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,cAAc,4BAA4B,CAAC;AAM3C,cAAc,iBAAiB,CAAC;AAMhC,cAAc,gBAAgB,CAAC;AAM/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAMpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ecosystem Error System - Central Exports
|
|
3
|
+
*
|
|
4
|
+
* This module provides a unified interface to the ecosystem's comprehensive
|
|
5
|
+
* error handling system. All error types, codes, and concrete error classes
|
|
6
|
+
* are exported from this single entry point.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
* @module @ecosystem/core/errors
|
|
10
|
+
*/
|
|
11
|
+
// ============================================================================
|
|
12
|
+
// EXIT CODES
|
|
13
|
+
// ============================================================================
|
|
14
|
+
export * from '../exit-codes/ExitCodes.js';
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// ERROR TYPES & CLASSIFICATIONS
|
|
17
|
+
// ============================================================================
|
|
18
|
+
export * from './ErrorTypes.js';
|
|
19
|
+
// ============================================================================
|
|
20
|
+
// BASE ERROR & UTILITIES
|
|
21
|
+
// ============================================================================
|
|
22
|
+
export * from './BaseError.js';
|
|
23
|
+
// ============================================================================
|
|
24
|
+
// ERROR CODES - All Components
|
|
25
|
+
// ============================================================================
|
|
26
|
+
export * from './ErrorCodes.js';
|
|
27
|
+
export * from './mediaproc.codes.js';
|
|
28
|
+
export * from './vaulta.codes.js';
|
|
29
|
+
export * from './devforge.codes.js';
|
|
30
|
+
// ============================================================================
|
|
31
|
+
// ERROR CLASSES - All Components
|
|
32
|
+
// ============================================================================
|
|
33
|
+
export * from './orbyt.errors.js';
|
|
34
|
+
export * from './mediaproc.errors.js';
|
|
35
|
+
export * from './vaulta.errors.js';
|
|
36
|
+
export * from './devforge.errors.js';
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAC/E,aAAa;AACb,+EAA+E;AAE/E,cAAc,4BAA4B,CAAC;AAE3C,+EAA+E;AAC/E,gCAAgC;AAChC,+EAA+E;AAE/E,cAAc,iBAAiB,CAAC;AAEhC,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,cAAc,gBAAgB,CAAC;AAE/B,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAE/E,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,+EAA+E;AAC/E,iCAAiC;AACjC,+EAA+E;AAE/E,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MediaProc Error Codes
|
|
3
|
+
*
|
|
4
|
+
* Structured error codes for the MediaProc media processing framework.
|
|
5
|
+
*
|
|
6
|
+
* Pattern: MEDIAPROC-<CATEGORY>-<NUMBER>
|
|
7
|
+
*
|
|
8
|
+
* Categories:
|
|
9
|
+
* - IMG: Image processing errors
|
|
10
|
+
* - VID: Video processing errors
|
|
11
|
+
* - AUD: Audio processing errors
|
|
12
|
+
* - PIPE: Pipeline execution errors
|
|
13
|
+
* - CODEC: Codec and format errors
|
|
14
|
+
*
|
|
15
|
+
* @category MediaProc
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare const MediaProcErrorCodes: {
|
|
19
|
+
/** Unsupported image format */
|
|
20
|
+
readonly IMAGE_FORMAT_UNSUPPORTED: "MEDIAPROC-IMG-001";
|
|
21
|
+
/** Image resize operation failed */
|
|
22
|
+
readonly IMAGE_RESIZE_FAILED: "MEDIAPROC-IMG-002";
|
|
23
|
+
/** Image conversion failed */
|
|
24
|
+
readonly IMAGE_CONVERSION_FAILED: "MEDIAPROC-IMG-003";
|
|
25
|
+
/** Invalid image dimensions */
|
|
26
|
+
readonly IMAGE_DIMENSIONS_INVALID: "MEDIAPROC-IMG-004";
|
|
27
|
+
/** Image file corrupted */
|
|
28
|
+
readonly IMAGE_FILE_CORRUPTED: "MEDIAPROC-IMG-005";
|
|
29
|
+
/** Image watermark failed */
|
|
30
|
+
readonly IMAGE_WATERMARK_FAILED: "MEDIAPROC-IMG-006";
|
|
31
|
+
/** Image optimization failed */
|
|
32
|
+
readonly IMAGE_OPTIMIZATION_FAILED: "MEDIAPROC-IMG-007";
|
|
33
|
+
/** Image metadata extraction failed */
|
|
34
|
+
readonly IMAGE_METADATA_FAILED: "MEDIAPROC-IMG-008";
|
|
35
|
+
/** Video codec not found */
|
|
36
|
+
readonly VIDEO_CODEC_NOT_FOUND: "MEDIAPROC-VID-001";
|
|
37
|
+
/** Video transcode failed */
|
|
38
|
+
readonly VIDEO_TRANSCODE_FAILED: "MEDIAPROC-VID-002";
|
|
39
|
+
/** Unsupported video format */
|
|
40
|
+
readonly VIDEO_FORMAT_UNSUPPORTED: "MEDIAPROC-VID-003";
|
|
41
|
+
/** Video file corrupted */
|
|
42
|
+
readonly VIDEO_FILE_CORRUPTED: "MEDIAPROC-VID-004";
|
|
43
|
+
/** Video encoding failed */
|
|
44
|
+
readonly VIDEO_ENCODING_FAILED: "MEDIAPROC-VID-005";
|
|
45
|
+
/** Video decoding failed */
|
|
46
|
+
readonly VIDEO_DECODING_FAILED: "MEDIAPROC-VID-006";
|
|
47
|
+
/** Invalid video bitrate */
|
|
48
|
+
readonly VIDEO_BITRATE_INVALID: "MEDIAPROC-VID-007";
|
|
49
|
+
/** Video frame extraction failed */
|
|
50
|
+
readonly VIDEO_FRAME_EXTRACTION_FAILED: "MEDIAPROC-VID-008";
|
|
51
|
+
/** Audio codec not found */
|
|
52
|
+
readonly AUDIO_CODEC_NOT_FOUND: "MEDIAPROC-AUD-001";
|
|
53
|
+
/** Audio conversion failed */
|
|
54
|
+
readonly AUDIO_CONVERSION_FAILED: "MEDIAPROC-AUD-002";
|
|
55
|
+
/** Unsupported audio format */
|
|
56
|
+
readonly AUDIO_FORMAT_UNSUPPORTED: "MEDIAPROC-AUD-003";
|
|
57
|
+
/** Audio file corrupted */
|
|
58
|
+
readonly AUDIO_FILE_CORRUPTED: "MEDIAPROC-AUD-004";
|
|
59
|
+
/** Audio normalization failed */
|
|
60
|
+
readonly AUDIO_NORMALIZATION_FAILED: "MEDIAPROC-AUD-005";
|
|
61
|
+
/** Invalid audio sample rate */
|
|
62
|
+
readonly AUDIO_SAMPLE_RATE_INVALID: "MEDIAPROC-AUD-006";
|
|
63
|
+
/** Pipeline step failed */
|
|
64
|
+
readonly PIPELINE_STEP_FAILED: "MEDIAPROC-PIPE-001";
|
|
65
|
+
/** Pipeline configuration invalid */
|
|
66
|
+
readonly PIPELINE_CONFIG_INVALID: "MEDIAPROC-PIPE-002";
|
|
67
|
+
/** Pipeline execution timeout */
|
|
68
|
+
readonly PIPELINE_TIMEOUT: "MEDIAPROC-PIPE-003";
|
|
69
|
+
/** Pipeline input invalid */
|
|
70
|
+
readonly PIPELINE_INPUT_INVALID: "MEDIAPROC-PIPE-004";
|
|
71
|
+
/** Pipeline output failed */
|
|
72
|
+
readonly PIPELINE_OUTPUT_FAILED: "MEDIAPROC-PIPE-005";
|
|
73
|
+
/** Codec initialization failed */
|
|
74
|
+
readonly CODEC_INIT_FAILED: "MEDIAPROC-CODEC-001";
|
|
75
|
+
/** Codec not supported */
|
|
76
|
+
readonly CODEC_NOT_SUPPORTED: "MEDIAPROC-CODEC-002";
|
|
77
|
+
/** Codec parameters invalid */
|
|
78
|
+
readonly CODEC_PARAMS_INVALID: "MEDIAPROC-CODEC-003";
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Type for MediaProc error codes
|
|
82
|
+
*/
|
|
83
|
+
export type MediaProcErrorCode = typeof MediaProcErrorCodes[keyof typeof MediaProcErrorCodes];
|
|
84
|
+
/**
|
|
85
|
+
* Get category from MediaProc error code
|
|
86
|
+
*/
|
|
87
|
+
export declare function getMediaProcErrorCategory(code: MediaProcErrorCode): string;
|
|
88
|
+
/**
|
|
89
|
+
* Check if code is a MediaProc error code
|
|
90
|
+
*/
|
|
91
|
+
export declare function isMediaProcErrorCode(code: string): code is MediaProcErrorCode;
|
|
92
|
+
//# sourceMappingURL=mediaproc.codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaproc.codes.d.ts","sourceRoot":"","sources":["../../src/errors/mediaproc.codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,mBAAmB;IAK9B,+BAA+B;;IAG/B,oCAAoC;;IAGpC,8BAA8B;;IAG9B,+BAA+B;;IAG/B,2BAA2B;;IAG3B,6BAA6B;;IAG7B,gCAAgC;;IAGhC,uCAAuC;;IAOvC,4BAA4B;;IAG5B,6BAA6B;;IAG7B,+BAA+B;;IAG/B,2BAA2B;;IAG3B,4BAA4B;;IAG5B,4BAA4B;;IAG5B,4BAA4B;;IAG5B,oCAAoC;;IAOpC,4BAA4B;;IAG5B,8BAA8B;;IAG9B,+BAA+B;;IAG/B,2BAA2B;;IAG3B,iCAAiC;;IAGjC,gCAAgC;;IAOhC,2BAA2B;;IAG3B,qCAAqC;;IAGrC,iCAAiC;;IAGjC,6BAA6B;;IAG7B,6BAA6B;;IAO7B,kCAAkC;;IAGlC,0BAA0B;;IAG1B,+BAA+B;;CAGvB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,mBAAmB,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAE9F;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAG1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,kBAAkB,CAE7E"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MediaProc Error Codes
|
|
3
|
+
*
|
|
4
|
+
* Structured error codes for the MediaProc media processing framework.
|
|
5
|
+
*
|
|
6
|
+
* Pattern: MEDIAPROC-<CATEGORY>-<NUMBER>
|
|
7
|
+
*
|
|
8
|
+
* Categories:
|
|
9
|
+
* - IMG: Image processing errors
|
|
10
|
+
* - VID: Video processing errors
|
|
11
|
+
* - AUD: Audio processing errors
|
|
12
|
+
* - PIPE: Pipeline execution errors
|
|
13
|
+
* - CODEC: Codec and format errors
|
|
14
|
+
*
|
|
15
|
+
* @category MediaProc
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export const MediaProcErrorCodes = {
|
|
19
|
+
// =========================================================================
|
|
20
|
+
// IMAGE (IMG) - Image processing errors
|
|
21
|
+
// =========================================================================
|
|
22
|
+
/** Unsupported image format */
|
|
23
|
+
IMAGE_FORMAT_UNSUPPORTED: 'MEDIAPROC-IMG-001',
|
|
24
|
+
/** Image resize operation failed */
|
|
25
|
+
IMAGE_RESIZE_FAILED: 'MEDIAPROC-IMG-002',
|
|
26
|
+
/** Image conversion failed */
|
|
27
|
+
IMAGE_CONVERSION_FAILED: 'MEDIAPROC-IMG-003',
|
|
28
|
+
/** Invalid image dimensions */
|
|
29
|
+
IMAGE_DIMENSIONS_INVALID: 'MEDIAPROC-IMG-004',
|
|
30
|
+
/** Image file corrupted */
|
|
31
|
+
IMAGE_FILE_CORRUPTED: 'MEDIAPROC-IMG-005',
|
|
32
|
+
/** Image watermark failed */
|
|
33
|
+
IMAGE_WATERMARK_FAILED: 'MEDIAPROC-IMG-006',
|
|
34
|
+
/** Image optimization failed */
|
|
35
|
+
IMAGE_OPTIMIZATION_FAILED: 'MEDIAPROC-IMG-007',
|
|
36
|
+
/** Image metadata extraction failed */
|
|
37
|
+
IMAGE_METADATA_FAILED: 'MEDIAPROC-IMG-008',
|
|
38
|
+
// =========================================================================
|
|
39
|
+
// VIDEO (VID) - Video processing errors
|
|
40
|
+
// =========================================================================
|
|
41
|
+
/** Video codec not found */
|
|
42
|
+
VIDEO_CODEC_NOT_FOUND: 'MEDIAPROC-VID-001',
|
|
43
|
+
/** Video transcode failed */
|
|
44
|
+
VIDEO_TRANSCODE_FAILED: 'MEDIAPROC-VID-002',
|
|
45
|
+
/** Unsupported video format */
|
|
46
|
+
VIDEO_FORMAT_UNSUPPORTED: 'MEDIAPROC-VID-003',
|
|
47
|
+
/** Video file corrupted */
|
|
48
|
+
VIDEO_FILE_CORRUPTED: 'MEDIAPROC-VID-004',
|
|
49
|
+
/** Video encoding failed */
|
|
50
|
+
VIDEO_ENCODING_FAILED: 'MEDIAPROC-VID-005',
|
|
51
|
+
/** Video decoding failed */
|
|
52
|
+
VIDEO_DECODING_FAILED: 'MEDIAPROC-VID-006',
|
|
53
|
+
/** Invalid video bitrate */
|
|
54
|
+
VIDEO_BITRATE_INVALID: 'MEDIAPROC-VID-007',
|
|
55
|
+
/** Video frame extraction failed */
|
|
56
|
+
VIDEO_FRAME_EXTRACTION_FAILED: 'MEDIAPROC-VID-008',
|
|
57
|
+
// =========================================================================
|
|
58
|
+
// AUDIO (AUD) - Audio processing errors
|
|
59
|
+
// =========================================================================
|
|
60
|
+
/** Audio codec not found */
|
|
61
|
+
AUDIO_CODEC_NOT_FOUND: 'MEDIAPROC-AUD-001',
|
|
62
|
+
/** Audio conversion failed */
|
|
63
|
+
AUDIO_CONVERSION_FAILED: 'MEDIAPROC-AUD-002',
|
|
64
|
+
/** Unsupported audio format */
|
|
65
|
+
AUDIO_FORMAT_UNSUPPORTED: 'MEDIAPROC-AUD-003',
|
|
66
|
+
/** Audio file corrupted */
|
|
67
|
+
AUDIO_FILE_CORRUPTED: 'MEDIAPROC-AUD-004',
|
|
68
|
+
/** Audio normalization failed */
|
|
69
|
+
AUDIO_NORMALIZATION_FAILED: 'MEDIAPROC-AUD-005',
|
|
70
|
+
/** Invalid audio sample rate */
|
|
71
|
+
AUDIO_SAMPLE_RATE_INVALID: 'MEDIAPROC-AUD-006',
|
|
72
|
+
// =========================================================================
|
|
73
|
+
// PIPELINE (PIPE) - Pipeline execution errors
|
|
74
|
+
// =========================================================================
|
|
75
|
+
/** Pipeline step failed */
|
|
76
|
+
PIPELINE_STEP_FAILED: 'MEDIAPROC-PIPE-001',
|
|
77
|
+
/** Pipeline configuration invalid */
|
|
78
|
+
PIPELINE_CONFIG_INVALID: 'MEDIAPROC-PIPE-002',
|
|
79
|
+
/** Pipeline execution timeout */
|
|
80
|
+
PIPELINE_TIMEOUT: 'MEDIAPROC-PIPE-003',
|
|
81
|
+
/** Pipeline input invalid */
|
|
82
|
+
PIPELINE_INPUT_INVALID: 'MEDIAPROC-PIPE-004',
|
|
83
|
+
/** Pipeline output failed */
|
|
84
|
+
PIPELINE_OUTPUT_FAILED: 'MEDIAPROC-PIPE-005',
|
|
85
|
+
// =========================================================================
|
|
86
|
+
// CODEC (CODEC) - Codec and format errors
|
|
87
|
+
// =========================================================================
|
|
88
|
+
/** Codec initialization failed */
|
|
89
|
+
CODEC_INIT_FAILED: 'MEDIAPROC-CODEC-001',
|
|
90
|
+
/** Codec not supported */
|
|
91
|
+
CODEC_NOT_SUPPORTED: 'MEDIAPROC-CODEC-002',
|
|
92
|
+
/** Codec parameters invalid */
|
|
93
|
+
CODEC_PARAMS_INVALID: 'MEDIAPROC-CODEC-003',
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Get category from MediaProc error code
|
|
97
|
+
*/
|
|
98
|
+
export function getMediaProcErrorCategory(code) {
|
|
99
|
+
const match = code.match(/^MEDIAPROC-([A-Z]+)-\d+$/);
|
|
100
|
+
return match?.[1] ?? 'UNKNOWN';
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Check if code is a MediaProc error code
|
|
104
|
+
*/
|
|
105
|
+
export function isMediaProcErrorCode(code) {
|
|
106
|
+
return Object.values(MediaProcErrorCodes).includes(code);
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=mediaproc.codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaproc.codes.js","sourceRoot":"","sources":["../../src/errors/mediaproc.codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,4EAA4E;IAC5E,wCAAwC;IACxC,4EAA4E;IAE5E,+BAA+B;IAC/B,wBAAwB,EAAE,mBAAmB;IAE7C,oCAAoC;IACpC,mBAAmB,EAAE,mBAAmB;IAExC,8BAA8B;IAC9B,uBAAuB,EAAE,mBAAmB;IAE5C,+BAA+B;IAC/B,wBAAwB,EAAE,mBAAmB;IAE7C,2BAA2B;IAC3B,oBAAoB,EAAE,mBAAmB;IAEzC,6BAA6B;IAC7B,sBAAsB,EAAE,mBAAmB;IAE3C,gCAAgC;IAChC,yBAAyB,EAAE,mBAAmB;IAE9C,uCAAuC;IACvC,qBAAqB,EAAE,mBAAmB;IAE1C,4EAA4E;IAC5E,wCAAwC;IACxC,4EAA4E;IAE5E,4BAA4B;IAC5B,qBAAqB,EAAE,mBAAmB;IAE1C,6BAA6B;IAC7B,sBAAsB,EAAE,mBAAmB;IAE3C,+BAA+B;IAC/B,wBAAwB,EAAE,mBAAmB;IAE7C,2BAA2B;IAC3B,oBAAoB,EAAE,mBAAmB;IAEzC,4BAA4B;IAC5B,qBAAqB,EAAE,mBAAmB;IAE1C,4BAA4B;IAC5B,qBAAqB,EAAE,mBAAmB;IAE1C,4BAA4B;IAC5B,qBAAqB,EAAE,mBAAmB;IAE1C,oCAAoC;IACpC,6BAA6B,EAAE,mBAAmB;IAElD,4EAA4E;IAC5E,wCAAwC;IACxC,4EAA4E;IAE5E,4BAA4B;IAC5B,qBAAqB,EAAE,mBAAmB;IAE1C,8BAA8B;IAC9B,uBAAuB,EAAE,mBAAmB;IAE5C,+BAA+B;IAC/B,wBAAwB,EAAE,mBAAmB;IAE7C,2BAA2B;IAC3B,oBAAoB,EAAE,mBAAmB;IAEzC,iCAAiC;IACjC,0BAA0B,EAAE,mBAAmB;IAE/C,gCAAgC;IAChC,yBAAyB,EAAE,mBAAmB;IAE9C,4EAA4E;IAC5E,8CAA8C;IAC9C,4EAA4E;IAE5E,2BAA2B;IAC3B,oBAAoB,EAAE,oBAAoB;IAE1C,qCAAqC;IACrC,uBAAuB,EAAE,oBAAoB;IAE7C,iCAAiC;IACjC,gBAAgB,EAAE,oBAAoB;IAEtC,6BAA6B;IAC7B,sBAAsB,EAAE,oBAAoB;IAE5C,6BAA6B;IAC7B,sBAAsB,EAAE,oBAAoB;IAE5C,4EAA4E;IAC5E,0CAA0C;IAC1C,4EAA4E;IAE5E,kCAAkC;IAClC,iBAAiB,EAAE,qBAAqB;IAExC,0BAA0B;IAC1B,mBAAmB,EAAE,qBAAqB;IAE1C,+BAA+B;IAC/B,oBAAoB,EAAE,qBAAqB;CAEnC,CAAC;AAOX;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAwB;IAChE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACrD,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC;AACjC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,OAAO,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,IAA0B,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MediaProc Error Classes
|
|
3
|
+
*
|
|
4
|
+
* Concrete error implementations for the MediaProc media processing framework.
|
|
5
|
+
* All errors extend BaseError and use MediaProcErrorCodes.
|
|
6
|
+
*
|
|
7
|
+
* @category MediaProc
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
import { BaseError } from './BaseError.js';
|
|
11
|
+
import { ErrorType, ErrorSeverity } from './ErrorTypes.js';
|
|
12
|
+
import { ExitCodes } from '../exit-codes/ExitCodes.js';
|
|
13
|
+
export declare class ImageFormatUnsupportedError extends BaseError {
|
|
14
|
+
readonly component = "mediaproc";
|
|
15
|
+
readonly type = ErrorType.USER;
|
|
16
|
+
readonly code: "MEDIAPROC-IMG-001";
|
|
17
|
+
readonly exitCode = ExitCodes.INVALID_FORMAT;
|
|
18
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
19
|
+
}
|
|
20
|
+
export declare class ImageResizeError extends BaseError {
|
|
21
|
+
readonly component = "mediaproc";
|
|
22
|
+
readonly type = ErrorType.EXECUTION;
|
|
23
|
+
readonly code: "MEDIAPROC-IMG-002";
|
|
24
|
+
readonly exitCode = ExitCodes.STEP_FAILED;
|
|
25
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
26
|
+
}
|
|
27
|
+
export declare class ImageConversionError extends BaseError {
|
|
28
|
+
readonly component = "mediaproc";
|
|
29
|
+
readonly type = ErrorType.EXECUTION;
|
|
30
|
+
readonly code: "MEDIAPROC-IMG-003";
|
|
31
|
+
readonly exitCode = ExitCodes.STEP_FAILED;
|
|
32
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
33
|
+
}
|
|
34
|
+
export declare class ImageFileCorruptedError extends BaseError {
|
|
35
|
+
readonly component = "mediaproc";
|
|
36
|
+
readonly type = ErrorType.USER;
|
|
37
|
+
readonly code: "MEDIAPROC-IMG-005";
|
|
38
|
+
readonly exitCode = ExitCodes.INVALID_FILE;
|
|
39
|
+
readonly severity = ErrorSeverity.HIGH;
|
|
40
|
+
}
|
|
41
|
+
export declare class ImageWatermarkError extends BaseError {
|
|
42
|
+
readonly component = "mediaproc";
|
|
43
|
+
readonly type = ErrorType.EXECUTION;
|
|
44
|
+
readonly code: "MEDIAPROC-IMG-006";
|
|
45
|
+
readonly exitCode = ExitCodes.STEP_FAILED;
|
|
46
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
47
|
+
}
|
|
48
|
+
export declare class VideoCodecNotFoundError extends BaseError {
|
|
49
|
+
readonly component = "mediaproc";
|
|
50
|
+
readonly type = ErrorType.CONFIG;
|
|
51
|
+
readonly code: "MEDIAPROC-VID-001";
|
|
52
|
+
readonly exitCode = ExitCodes.MISSING_DEPENDENCY;
|
|
53
|
+
readonly severity = ErrorSeverity.HIGH;
|
|
54
|
+
}
|
|
55
|
+
export declare class VideoTranscodeError extends BaseError {
|
|
56
|
+
readonly component = "mediaproc";
|
|
57
|
+
readonly type = ErrorType.EXECUTION;
|
|
58
|
+
readonly code: "MEDIAPROC-VID-002";
|
|
59
|
+
readonly exitCode = ExitCodes.STEP_FAILED;
|
|
60
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
61
|
+
readonly retryable = true;
|
|
62
|
+
}
|
|
63
|
+
export declare class VideoFormatUnsupportedError extends BaseError {
|
|
64
|
+
readonly component = "mediaproc";
|
|
65
|
+
readonly type = ErrorType.USER;
|
|
66
|
+
readonly code: "MEDIAPROC-VID-003";
|
|
67
|
+
readonly exitCode = ExitCodes.INVALID_FORMAT;
|
|
68
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
69
|
+
}
|
|
70
|
+
export declare class VideoFileCorruptedError extends BaseError {
|
|
71
|
+
readonly component = "mediaproc";
|
|
72
|
+
readonly type = ErrorType.USER;
|
|
73
|
+
readonly code: "MEDIAPROC-VID-004";
|
|
74
|
+
readonly exitCode = ExitCodes.INVALID_FILE;
|
|
75
|
+
readonly severity = ErrorSeverity.HIGH;
|
|
76
|
+
}
|
|
77
|
+
export declare class AudioCodecNotFoundError extends BaseError {
|
|
78
|
+
readonly component = "mediaproc";
|
|
79
|
+
readonly type = ErrorType.CONFIG;
|
|
80
|
+
readonly code: "MEDIAPROC-AUD-001";
|
|
81
|
+
readonly exitCode = ExitCodes.MISSING_DEPENDENCY;
|
|
82
|
+
readonly severity = ErrorSeverity.HIGH;
|
|
83
|
+
}
|
|
84
|
+
export declare class AudioConversionError extends BaseError {
|
|
85
|
+
readonly component = "mediaproc";
|
|
86
|
+
readonly type = ErrorType.EXECUTION;
|
|
87
|
+
readonly code: "MEDIAPROC-AUD-002";
|
|
88
|
+
readonly exitCode = ExitCodes.STEP_FAILED;
|
|
89
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
90
|
+
}
|
|
91
|
+
export declare class AudioFormatUnsupportedError extends BaseError {
|
|
92
|
+
readonly component = "mediaproc";
|
|
93
|
+
readonly type = ErrorType.USER;
|
|
94
|
+
readonly code: "MEDIAPROC-AUD-003";
|
|
95
|
+
readonly exitCode = ExitCodes.INVALID_FORMAT;
|
|
96
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
97
|
+
}
|
|
98
|
+
export declare class PipelineStepError extends BaseError {
|
|
99
|
+
readonly component = "mediaproc";
|
|
100
|
+
readonly type = ErrorType.EXECUTION;
|
|
101
|
+
readonly code: "MEDIAPROC-PIPE-001";
|
|
102
|
+
readonly exitCode = ExitCodes.STEP_FAILED;
|
|
103
|
+
readonly severity = ErrorSeverity.HIGH;
|
|
104
|
+
}
|
|
105
|
+
export declare class PipelineConfigurationError extends BaseError {
|
|
106
|
+
readonly component = "mediaproc";
|
|
107
|
+
readonly type = ErrorType.CONFIG;
|
|
108
|
+
readonly code: "MEDIAPROC-PIPE-002";
|
|
109
|
+
readonly exitCode = ExitCodes.INVALID_CONFIG;
|
|
110
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
111
|
+
}
|
|
112
|
+
export declare class PipelineTimeoutError extends BaseError {
|
|
113
|
+
readonly component = "mediaproc";
|
|
114
|
+
readonly type = ErrorType.EXECUTION;
|
|
115
|
+
readonly code: "MEDIAPROC-PIPE-003";
|
|
116
|
+
readonly exitCode = ExitCodes.TIMEOUT;
|
|
117
|
+
readonly severity = ErrorSeverity.MEDIUM;
|
|
118
|
+
readonly retryable = true;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=mediaproc.errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaproc.errors.d.ts","sourceRoot":"","sources":["../../src/errors/mediaproc.errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAOvD,qBAAa,2BAA4B,SAAQ,SAAS;IACxD,QAAQ,CAAC,SAAS,eAAe;IACjC,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,IAAI,sBAAgD;IAC7D,QAAQ,CAAC,QAAQ,4BAA4B;IAC7C,SAAkB,QAAQ,wBAAwB;CACnD;AAED,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,QAAQ,CAAC,SAAS,eAAe;IACjC,QAAQ,CAAC,IAAI,uBAAuB;IACpC,QAAQ,CAAC,IAAI,sBAA2C;IACxD,QAAQ,CAAC,QAAQ,yBAAyB;IAC1C,SAAkB,QAAQ,wBAAwB;CACnD;AAED,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,QAAQ,CAAC,SAAS,eAAe;IACjC,QAAQ,CAAC,IAAI,uBAAuB;IACpC,QAAQ,CAAC,IAAI,sBAA+C;IAC5D,QAAQ,CAAC,QAAQ,yBAAyB;IAC1C,SAAkB,QAAQ,wBAAwB;CACnD;AAED,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,QAAQ,CAAC,SAAS,eAAe;IACjC,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,IAAI,sBAA4C;IACzD,QAAQ,CAAC,QAAQ,0BAA0B;IAC3C,SAAkB,QAAQ,sBAA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