studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
18 lines (17 loc) • 423 B
JavaScript
import { Data } from "effect";
import { StudioCMSError } from "../../errors.js";
class StudioCMS_SDK_Error extends StudioCMSError {
name = "StudioCMS SDK Error";
}
class SDKCoreError extends Data.TaggedError("studiocms/sdk/errors/SDKCoreError") {
toString() {
return `SDKCoreError: ${this.cause.message}`;
}
get message() {
return this.cause.message;
}
}
export {
SDKCoreError,
StudioCMS_SDK_Error
};