Completed
Push — master ( 30bc28...af2f3c )
by Mauro
03:58
created

src/Exception/UserException.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace App\Exception;
4
5
/**
6
 * User Exception.
7
 */
8 View Code Duplication
class UserException extends BaseException
0 ignored issues
show
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
    const USER_NOT_FOUND = 'El usuario solicitado no existe.';
11
    const USER_NAME_NOT_FOUND = 'No se encontraron usuarios con ese nombre.';
12
    const USER_NAME_REQUIRED = 'Ingrese el nombre del usuario.';
13
    const USER_INFO_REQUIRED = 'Ingrese los datos a actualizar del usuario.';
14
    const USER_NAME_INVALID = 'El nombre ingresado es incorrecto.';
15
    const USER_EMAIL_INVALID = 'El email ingresado es incorrecto.';
16
17
    /**
18
     * @param string $message
19
     * @param int $code
20
     * @param \Exception $previous
21
     */
22
    public function __construct($message = '', $code = 0, \Exception $previous = null)
23
    {
24
        parent::__construct($message, $code, $previous);
25
    }
26
}
27