Skip to content

Commit

Permalink
Adding a parent failure class that all others extend from.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshforbes committed Nov 11, 2016
1 parent db12705 commit 96f489b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
4 changes: 1 addition & 3 deletions src/Exceptions/AccessDenied.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace NavJobs\GoogleGeocoder\Exceptions;

use Exception;

class AccessDenied extends Exception
class AccessDenied extends GeocodingFailure
{

}
10 changes: 10 additions & 0 deletions src/Exceptions/GeocodingFailure.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace NavJobs\GoogleGeocoder\Exceptions;

use Exception;

class GeocodingFailure extends Exception
{

}
4 changes: 1 addition & 3 deletions src/Exceptions/InvalidKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace NavJobs\GoogleGeocoder\Exceptions;

use Exception;

class InvalidKey extends Exception
class InvalidKey extends GeocodingFailure
{

}
4 changes: 1 addition & 3 deletions src/Exceptions/NoResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace NavJobs\GoogleGeocoder\Exceptions;

use Exception;

class NoResult extends Exception
class NoResult extends GeocodingFailure
{

}
4 changes: 1 addition & 3 deletions src/Exceptions/QuotaExceeded.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace NavJobs\GoogleGeocoder\Exceptions;

use Exception;

class QuotaExceeded extends Exception
class QuotaExceeded extends GeocodingFailure
{

}

0 comments on commit 96f489b

Please sign in to comment.