Better error descriptions
This commit is contained in:
parent
50b1eb902a
commit
90a3dee390
3 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ class Authorization extends Validator
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $message = 'Unknown Error';
|
protected $message = 'Authorization Error';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure constructor.
|
* Structure constructor.
|
||||||
|
|
|
@ -10,7 +10,7 @@ class Permissions extends Validator
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $message = 'Unknown Error';
|
protected $message = 'Permissions Error';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Document
|
* @var Document
|
||||||
|
|
|
@ -89,7 +89,7 @@ class Structure extends Validator
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $message = 'Unknown Error';
|
protected $message = 'General Error';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure constructor.
|
* Structure constructor.
|
||||||
|
@ -110,7 +110,7 @@ class Structure extends Validator
|
||||||
*/
|
*/
|
||||||
public function getDescription()
|
public function getDescription()
|
||||||
{
|
{
|
||||||
return 'Invalid document (#'.$this->id.'): '.$this->message;
|
return 'Invalid document structure: '.$this->message;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue