Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← Public packages

@danj/audible-auth

Locked Audible gateway using one owner-provisioned Kody login.

FollowFork

Files

errors.ts

16 lines · 488 B · TypeScript
/** An Audible HTTP failure: its status, the call, and package-owned tags for the body; never Audible's text. */
export class AudibleApiError extends Error {
	status: number
	constructor(status: number, message: string) {
		super(message)
		this.name = 'AudibleApiError'
		this.status = status
	}
}

export class NotConnectedError extends Error {
	constructor() {
		super('Audible is not connected. Open Audible setup and provision audible-login.')
		this.name = 'NotConnectedError'
	}
}