export class UnauthorizedActionError extends Error { constructor ( ) { super ( 'Unauthorized action' ) ; } } export class UnknownEntityError extends Error { constructor ( id ) { super ( `Unknown entity ${ id }` ) ; } } export class ForbiddenActionError extends Error { constructor ( msg ) { super ( `Forbidden action: ${ msg }` ) ; } }