export class CommandError extends Error { constructor ( public readonly message , public readonly humanError ? ) { super ( message ) ; } } export class NotLoggedInError extends CommandError { constructor ( ) { super ( "User is not logged in" , "You are not logged in" ) ; } }