import * as Schema from "effect/Schema"; export class ServerCliCommandExitError extends Schema.TaggedErrorClass()( "ServerCliCommandExitError", { command: Schema.String, args: Schema.Array(Schema.String), cwd: Schema.optional(Schema.String), exitCode: Schema.Int, }, ) { override get message(): string { return `Command exited with non-zero exit code (${this.exitCode})`; } } export class ServerCliPublishIconSourceMissingError extends Schema.TaggedErrorClass()( "ServerCliPublishIconSourceMissingError", { sourcePath: Schema.String, }, ) { override get message(): string { return `Missing publish icon source: ${this.sourcePath}`; } } export class ServerCliPublishIconTargetMissingError extends Schema.TaggedErrorClass()( "ServerCliPublishIconTargetMissingError", { targetPath: Schema.String, }, ) { override get message(): string { return `Missing publish icon target: ${this.targetPath}. Run the build subcommand first.`; } } export class ServerCliDevelopmentIconSourceMissingError extends Schema.TaggedErrorClass()( "ServerCliDevelopmentIconSourceMissingError", { sourcePath: Schema.String, }, ) { override get message(): string { return `Missing development icon source: ${this.sourcePath}`; } } export class ServerCliDevelopmentIconTargetMissingError extends Schema.TaggedErrorClass()( "ServerCliDevelopmentIconTargetMissingError", { targetPath: Schema.String, }, ) { override get message(): string { return `Missing development icon target: ${this.targetPath}. Build web first.`; } } export class ServerCliBuildAssetMissingError extends Schema.TaggedErrorClass()( "ServerCliBuildAssetMissingError", { assetPath: Schema.String, }, ) { override get message(): string { return `Missing build asset: ${this.assetPath}. Run the build subcommand first.`; } }