In this case, extend the error class. I agree with you, it allows a better error management.