+ createError function to extend the AbstractError easily.