This class is not an exception, and does not extend Throwable
or any other exception class, but ends with 'Exception'
. This may be confusing to users of this class.
class HandleException {
// ... some code to do with handling exceptions?
}
Consider renaming the class to be less confusing:
class ExceptionHandler {
// ...
}