lib/BlockCypher/Common/BlockCypherBaseModel.php
public function addError($error)
    {
        if (!$this->getErrors()) {
            return $this->setErrors(array($error));
        } else {
            return $this->setErrors(
                array_merge($this->getErrors(), array($error))
            );
        }
    }
public function addError($error)
    {
        if (!$this->getErrors()) {
            return $this->setErrors(array($error));
        } else {
            return $this->setErrors(
                array_merge($this->getErrors(), array($error))
            );
        }
    }
public function addError ( $ error ) { if ( ! $ this -> getErrors ( ) ) { return $ this -> setErrors ( array ( $ error ) ) ; } else { return $ this -> setErrors ( array_merge ( $ this -> getErrors ( ) , array ( $ error ) ) ) ; } }
Append error to the list.

@param \BlockCypher\Api\Error $error
@return $this
Append error to the list .