import { BaseError } from '../../../../framework/error/mod.js' export class RegisterDeviceClientError extends BaseError { public readonly _tag = 'RegisterDeviceClientError' constructor(public readonly cause: unknown) { super( 'failed to register a device, because the client had a problem communicating with the Generous platform failed.', ) } } export class RegisterDevicePlatformError extends BaseError { public readonly _tag = 'RegisterDevicePlatformError' constructor(public readonly cause: unknown) { super( 'failed to register a device, because the Generous platform had a problem while processing the request.', ) } } export class DeviceQuotaExceededError extends BaseError { public readonly _tag = 'DeviceQuotaExceededError' } export class InvalidDeviceRegistrationCodeError extends BaseError { public readonly _tag = 'InvalidDeviceRegistrationCodeError' } export class InvalidDeviceRegistrationWindowError extends BaseError { public readonly _tag = 'InvalidDeviceRegistrationWindowError' } export class DeviceAlreadyRegisteredError extends BaseError { public readonly _tag = 'DeviceAlreadyRegisteredError' } export class DeviceRegistrationEligibilityError extends BaseError { public readonly _tag = 'DeviceRegistrationEligibilityError' }