A simple way to create custom error classes in JS.