Implement and use factory for BackendException
* VuFindSearch/Backend/Solr/Connector.php (send): Use exception factory. * VuFindSearch/Backend/Exception/BackendException.php (createFromResponse): New function. Create exception based on server response.
Showing
- module/VuFindSearch/src/VuFindSearch/Backend/Exception/BackendException.php 21 additions, 0 deletions...h/src/VuFindSearch/Backend/Exception/BackendException.php
- module/VuFindSearch/src/VuFindSearch/Backend/Solr/Connector.php 2 additions, 10 deletions.../VuFindSearch/src/VuFindSearch/Backend/Solr/Connector.php
Please register or sign in to comment