Removed deprecation warnings in exception constructor