Changed to inherit from Exception.