You don't need to define this error as a top-level xmodule exception: see #892