-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
HorstOeko
committed
Oct 13, 2024
1 parent
05932ec
commit 64245e9
Showing
20 changed files
with
85 additions
and
6,468 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,51 @@ | ||
<?php | ||
|
||
/** | ||
* This file is a part of horstoeko/zugferd. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace horstoeko\orderx\exception; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
/** | ||
* Class representing an exception for unknown profile | ||
* | ||
* @category Zugferd | ||
* @package Zugferd | ||
* @author D. Erling <[email protected]> | ||
* @license https://opensource.org/licenses/MIT MIT | ||
* @link https://github.com/horstoeko/zugferd | ||
*/ | ||
class OrderUnknownXmlContentException extends Exception | ||
{ | ||
/** | ||
* Constructor | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct($this->buildMessage()); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function __toString() | ||
{ | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
/** | ||
* Build the message | ||
* | ||
* @return string | ||
*/ | ||
private function buildMessage(): string | ||
{ | ||
return "The XML does not match the requirements for an XML in CII-Syntax"; | ||
} | ||
} |
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
Oops, something went wrong.