Completed
Push — master ( 26b7f9...bdc586 )
by John
01:51
created

WordManagerException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace John\Exceptions;
3
4
use Exception;
5
6
/**
7
 * Word Manager Exceptions.
8
 *
9
 * Handles errors in the CRUD Methods in John\Cp\UrbanWordsManager
10
 *
11
 */
12
class WordManagerException extends Exception
13
{
14
15
    protected $message;
16
    /**
17
     *  Capture thrown error message
18
     *
19
     * @return [string] [Return caught error]
0 ignored issues
show
Documentation introduced by
The doc-type [string] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
20
     */
21
    public function __construct($message)
22
    {
23
        $this->message = $message;
24
    }
25
26
    /**
27
     * Return thrown error message
28
     *
29
     * @return string error message
30
     */
31
    public function errorMessage()
32
    {
33
         return $this->message;
34
    }
35
}
36