Ignore:
Timestamp:
04/27/12 15:18:00 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Modificada implementação para tratamento de erros por Exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/catalog/ContactsResource.php

    r6019 r6061  
    2424                                                return $this->getGlobalContacts($search, $this->getParam('contactID')); 
    2525                                        else{ 
    26                                                 $this->setError(Errors::CATALOG_MIN_ARGUMENT_SEARCH, $this-> getMinArgumentSearch());                                            
    27                                                 return $this->getResponse(); 
     26                                                $error = Errors::get(Errors::CATALOG_MIN_ARGUMENT_SEARCH, $this-> getMinArgumentSearch());                                               
     27                                                throw new ResponseException($error['message'], $error['code']); 
    2828                                        } 
    2929                                } 
Note: See TracChangeset for help on using the changeset viewer.