Skip to content

Commit

Permalink
Trying to be friends with apigen
Browse files Browse the repository at this point in the history
  • Loading branch information
mrblur committed Aug 23, 2015
1 parent 756f929 commit 812e0c5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/fuelioimporter/invalidfileformatexception.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

namespace FuelioImporter;

/**
* Exception for reporting invalid input file format
* @author Kamil Kamiński
* @package Exceptions
*/
class InvalidFileFormatException extends \Exception {

public function __construct($message = null, $code = 0, $previous = null) {
Expand Down
11 changes: 10 additions & 1 deletion lib/fuelioimporter/invalidunitexception.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@

namespace FuelioImporter;

class InvalidUnitException extends \Exception { }
/**
* Exception for reporting invalid units
* @author Kamil Kamiński
* @package Exceptions
*/
class InvalidUnitException extends \Exception {
public function __construct($message = null, $code = null, $previous = null) {
parent::__construct($message ? $message : 'Invalid unit specified.', $code, $previous);
}
}
11 changes: 10 additions & 1 deletion lib/fuelioimporter/providernotexistsexception.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@

namespace FuelioImporter;

class ProviderNotExistsException extends \Exception { };
/**
* Exception for reporting invalid provider name
* @author Kamil Kamiński
* @package Exceptions
*/
class ProviderNotExistsException extends \Exception {

public function __construct($message = null, $code = null, $previous = null) {
parent::__construct($message ? $message : 'No such provider exists.', $code, $previous);
}};

0 comments on commit 812e0c5

Please sign in to comment.