mirror of
https://github.com/manualdousuario/marreta.git
synced 2026-04-30 12:30:23 +00:00
adicionada documentação na nova estrutura do urlanalyzer
This commit is contained in:
parent
91f58e61c7
commit
db4e512e63
7 changed files with 120 additions and 3 deletions
|
|
@ -1,12 +1,20 @@
|
|||
<?php
|
||||
/**
|
||||
* Custom exceptions for URL analysis
|
||||
* Adds error type and extra details
|
||||
*/
|
||||
|
||||
namespace Inc\URLAnalyzer;
|
||||
|
||||
class URLAnalyzerException extends \Exception
|
||||
{
|
||||
/** @var string Error type from ERROR_* constants */
|
||||
private $errorType;
|
||||
|
||||
/** @var string Extra error details */
|
||||
private $additionalInfo;
|
||||
|
||||
/** Creates new exception with error details */
|
||||
public function __construct($message, $code, $errorType, $additionalInfo = '')
|
||||
{
|
||||
parent::__construct($message, $code);
|
||||
|
|
@ -14,11 +22,13 @@ class URLAnalyzerException extends \Exception
|
|||
$this->additionalInfo = $additionalInfo;
|
||||
}
|
||||
|
||||
/** Gets error type */
|
||||
public function getErrorType()
|
||||
{
|
||||
return $this->errorType;
|
||||
}
|
||||
|
||||
/** Gets extra error details */
|
||||
public function getAdditionalInfo()
|
||||
{
|
||||
return $this->additionalInfo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue