Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FTPConnectionFailed exception
- Loading branch information
1 parent
a84bc07
commit ed3dfef
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
application/MantisBT/Exception/Attachment/FTPConnectionFailed.php
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,13 @@ | ||
<?php | ||
namespace MantisBT\Exception\Attachment; | ||
use MantisBT\Exception\ExceptionAbstract; | ||
|
||
require_api('lang_api.php'); | ||
|
||
class FTPConnectionFailed extends ExceptionAbstract { | ||
public function __construct() { | ||
$errorMessage = lang_get(ERROR_FTP_CONNECT_ERROR, null, false); | ||
parent::__construct(ERROR_FTP_CONNECT_ERROR, $errorMessage, null); | ||
$this->responseCode = 500; | ||
} | ||
} |
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