src/Keboola/Syrup/Exception/JobException.php
public function setStatus($status)
    {
        $allowedStatuses = array(
            Job::STATUS_ERROR,
            Job::STATUS_SUCCESS,
            Job::STATUS_WARNING,
            Job::STATUS_TERMINATED
        );

        if (!in_array($status, $allowedStatuses)) {
            throw new \InvalidArgumentException(sprintf('Status "%s" is not allowed in JobException', $status));
        }

        $this->status = (string) $status;
        return $this;
    }
public function setStatus($status)
    {
        $allowedStatuses = array(
            Job::STATUS_ERROR,
            Job::STATUS_SUCCESS,
            Job::STATUS_WARNING,
            Job::STATUS_TERMINATED
        );

        if (!in_array($status, $allowedStatuses)) {
            throw new \InvalidArgumentException(sprintf('Status "%s" is not allowed in JobException', $status));
        }

        $this->status = (string) $status;
        return $this;
    }
public function setStatus ( $ status ) { $ allowedStatuses = array ( Job :: STATUS_ERROR , Job :: STATUS_SUCCESS , Job :: STATUS_WARNING , Job :: STATUS_TERMINATED ) ; if ( ! in_array ( $ status , $ allowedStatuses ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Status "%s" is not allowed in JobException' , $ status ) ) ; } $ this -> status = ( string ) $ status ; return $ this ; }
Set job status

@param string $status
@return $this
@throws \InvalidArgumentException
Set job status