-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement AttachmentsPathInvalid exception
- Loading branch information
1 parent
f2ab921
commit 93c90a5
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/AttachmentsPathInvalid.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 AttachmentsPathInvalid extends ExceptionAbstract { | ||
public function __construct() { | ||
$errorMessage = lang_get(ERROR_INVALID_UPLOAD_PATH, null, false); | ||
parent::__construct(ERROR_INVALID_UPLOAD_PATH, $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