From f5ca83dbd3c84d94db563e7da3c9dfd1620e7bca Mon Sep 17 00:00:00 2001 From: Vaidas Lungis Date: Wed, 19 Nov 2014 11:23:15 +0200 Subject: [PATCH] Exception renamed to Registrar_Exception --- src/bb-library/Registrar/Adapter/Resellerclub.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bb-library/Registrar/Adapter/Resellerclub.php b/src/bb-library/Registrar/Adapter/Resellerclub.php index 97aef4f1b..cd91f979f 100644 --- a/src/bb-library/Registrar/Adapter/Resellerclub.php +++ b/src/bb-library/Registrar/Adapter/Resellerclub.php @@ -815,7 +815,7 @@ class Registrar_Adapter_Resellerclub extends Registrar_AdapterAbstract if($tld == '.es') { if(strlen(trim($client->getDocumentNr())) == 0 ) { - throw new Exception('Valid contact Passport information is required while registering ES domain name'); + throw new Registrar_Exception('Valid contact Passport information is required while registering ES domain name'); } //@see http://manage.directi.com/kb/answer/790 @@ -835,7 +835,7 @@ class Registrar_Adapter_Resellerclub extends Registrar_AdapterAbstract if($tld == '.asia') { if(strlen(trim($client->getDocumentNr())) == 0 ) { - throw new Exception('Valid contact Passport information is required while registering ASIA domain name'); + throw new Registrar_Exception('Valid contact Passport information is required while registering ASIA domain name'); } $contact['attr-name1'] = 'locality'; @@ -859,11 +859,11 @@ class Registrar_Adapter_Resellerclub extends Registrar_AdapterAbstract if($tld == '.ru' || $tld == '.com.ru' || $tld == '.org.ru' || $tld == '.net.ru') { if(strlen(trim($client->getBirthday())) == 0 || strtotime($client->getBirthday()) == false) { - throw new Exception('Valid contact Birth Date is required while registering RU domain name'); + throw new Registrar_Exception('Valid contact Birth Date is required while registering RU domain name'); } if(strlen(trim($client->getDocumentNr())) == 0 ) { - throw new Exception('Valid contact Passport information is required while registering RU domain name'); + throw new Registrar_Exception('Valid contact Passport information is required while registering RU domain name'); } if(str_word_count($contact['company']) < 2) { @@ -950,11 +950,11 @@ class Registrar_Adapter_Resellerclub extends Registrar_AdapterAbstract ); $result = $this->_makeRequest('contacts/search', $params, 'GET', 'json', true); if($result['recsonpage'] < 1) { - throw new Exception('Contact not found'); + throw new Registrar_Exception('Contact not found'); } $existing_contact_id = $result['result'][0]['entity.entityid']; $this->_makeRequest('contacts/delete', array('contact-id'=>$existing_contact_id), 'POST'); - } catch(Exception $e) { + } catch(Registrar_Exception $e) { $this->getLog()->info($e->getMessage()); }