Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
/** Transport-neutral domain failure; the application supplies HTTP mapping and translations. */
export class CoreError extends Error {
readonly statusCode: number
readonly code?: string
constructor(statusCode: number, message: string, code?: string) {
super(message)
this.name = 'CoreError'
this.statusCode = statusCode
this.code = code
}
}
/** Retain the read-specific error identity for existing consumers. */
export class ResourceReadError extends CoreError {
constructor(statusCode: 401 | 403 | 404, message: string) {
super(statusCode, message)
this.name = 'ResourceReadError'
}
}