protected function setDetail($detail)
    {
        if (0 === strlen(trim($detail))) {
            throw new \InvalidArgumentException('Provided error message cannot be empty');
        }

        $this->detail = (string) $detail;
    }
protected function setDetail($detail)
    {
        if (0 === strlen(trim($detail))) {
            throw new \InvalidArgumentException('Provided error message cannot be empty');
        }

        $this->detail = (string) $detail;
    }
protected function setDetail ( $ detail ) { if ( 0 === strlen ( trim ( $ detail ) ) ) { throw new \ InvalidArgumentException ( 'Provided error message cannot be empty' ) ; } $ this -> detail = ( string ) $ detail ; }
A human-readable explanation specific to this occurrence of the problem.

@param $detail

@throws \InvalidArgumentException
A human - readable explanation specific to this occurrence of the problem .