Skip to content

Commit 812e0c5

Browse files
committed
Trying to be friends with apigen
1 parent 756f929 commit 812e0c5

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

lib/fuelioimporter/invalidfileformatexception.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
namespace FuelioImporter;
44

5+
/**
6+
* Exception for reporting invalid input file format
7+
* @author Kamil Kamiński
8+
* @package Exceptions
9+
*/
510
class InvalidFileFormatException extends \Exception {
611

712
public function __construct($message = null, $code = 0, $previous = null) {

lib/fuelioimporter/invalidunitexception.class.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22

33
namespace FuelioImporter;
44

5-
class InvalidUnitException extends \Exception { }
5+
/**
6+
* Exception for reporting invalid units
7+
* @author Kamil Kamiński
8+
* @package Exceptions
9+
*/
10+
class InvalidUnitException extends \Exception {
11+
public function __construct($message = null, $code = null, $previous = null) {
12+
parent::__construct($message ? $message : 'Invalid unit specified.', $code, $previous);
13+
}
14+
}

lib/fuelioimporter/providernotexistsexception.class.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22

33
namespace FuelioImporter;
44

5-
class ProviderNotExistsException extends \Exception { };
5+
/**
6+
* Exception for reporting invalid provider name
7+
* @author Kamil Kamiński
8+
* @package Exceptions
9+
*/
10+
class ProviderNotExistsException extends \Exception {
11+
12+
public function __construct($message = null, $code = null, $previous = null) {
13+
parent::__construct($message ? $message : 'No such provider exists.', $code, $previous);
14+
}};

0 commit comments

Comments
 (0)