Refactoring. Do not extend basic Exception class directly.