Converted "ErrorDialog" to PF.