// if you would like to add some logging or something similar, start here
export function throwError(error: any): void {
if (error instanceof Error) {
throw error;
} else {
throw new Error(error);
}