Custom Javascript Error Classes optimised for error logging