Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function getMessage() |
||
14 | { |
||
15 | switch ($this->code) { |
||
16 | case static::RESOURCE_FAILED_VALIDATION: |
||
17 | return "resource {$this->extraDetails['resource']} failed validation: " |
||
18 | .ResourceValidationError::getErrorMessages($this->extraDetails['validationErrors']); |
||
19 | case static::DATA_STREAM_FAILURE: |
||
20 | return "resource {$this->extraDetails['resource']}" |
||
21 | //."data stream {$this->extraDetails['dataStream']}" |
||
22 | .($this->extraDetails['line'] ? ", line number {$this->extraDetails['line']}" : '') |
||
23 | .': '.$this->extraDetails['error']; |
||
24 | default: |
||
25 | return parent::getMessage(); |
||
26 | } |
||
27 | } |
||
28 | } |
||
29 |