-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display copying errors in the CLI (#127)
* display copying errors in the CLI * fix style * Update CopyRequestFailedException.php Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
accb920
commit f807c52
Showing
3 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Laravel\VaporCli\Exceptions; | ||
|
||
use RuntimeException; | ||
|
||
class CopyRequestFailedException extends RuntimeException | ||
{ | ||
/** | ||
* The file index. | ||
* | ||
* @var int | ||
*/ | ||
public $index; | ||
|
||
/** | ||
* Create a new exception instance. | ||
* | ||
* @param string $message | ||
* @param int $index | ||
*/ | ||
public function __construct($message = '', $index = 0) | ||
{ | ||
parent::__construct($message); | ||
|
||
$this->index = $index; | ||
} | ||
|
||
/** | ||
* Get the file index. | ||
* | ||
* @return int | ||
*/ | ||
public function getIndex() | ||
{ | ||
return $this->index; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters