@param CoverFishResult $coverFishResult
@param int             $warningCode
@param string|null     $warningMessage

@return CoverFishResult
423262
public function setValidationWarning(CoverFishResult $coverFishResult, $warningCode, $warningMessage = null)
    {
        $coverFishResult->addWarning(new CoverFishMessageWarning($warningCode, $warningMessage));

        return $coverFishResult;
    }
240050
public void writeWarningResult(int line, String value) {
        logger.debug("Write Warning result => line:{} value:{}", line, value);
        writeValue(resultColumnName, line, value);
    }
1322432
public static Result failure(int code, String message) {
        return new Result(false, String.valueOf(code), message);
    }
1226515
def _outputMessages(self, warnings, node):
        
        if not warnings:
            # No warnings were found
            return
        for warning in warnings:
            linenum, offset, msgidInPyCodeStyle, text = warning

            if text.startswith(msgidInPyCodeStyle):
                # If the PyCodeStyle code is at the start of the text, trim it out
                text = text[len(msgidInPyCodeStyle) + 1:]

            if msgidInPyCodeStyle in self.mapPyCodeStyleMessages:
                msgid, patternArguments = self.mapPyCodeStyleMessages[msgidInPyCodeStyle]
                if (not self.pycodestyleEnabled and
                    msgid in self.standardPyCodeStyleMessages):
                    continue

                arguments = []
                if patternArguments:
                    matchResult = re.search(patternArguments, text)
                    if matchResult:
                        arguments = matchResult.groups()
                self.add_message(msgid, line=linenum, args=arguments, node=node)
536439
@Override
    public void warning(String code, Object... arguments)
        throws NullPointerException, IllegalArgumentException {

        this.store.add(Level.WARNING, resolveMessage(code, arguments));
    }
715388
void onSignOutResult(int rstCode, SignOutResult result) {
        HMSAgentLog.i("signOut:callback=" + StrUtils.objDesc(handler) +" retCode=" + rstCode);
        if (handler != null) {
            new Handler(Looper.getMainLooper()).post(new CallbackResultRunnable<SignOutResult>(handler, rstCode, result));
            handler = null;
        }
        retryTimes = MAX_RETRY_TIMES;
    }
1347159
protected function _respondToError($errorMessage, $httpCode) {
        $this->_setHttpStatusCode($httpCode);
        $this->view->result = array(
            'success' => false,
            'errorMessage' => $errorMessage
        );
    }
1057619
public function validateEmptyDocBlock(CoverFishMapping $coverMapping, CoverFishResult $coverFishResult)
    {
        if (null === ($coverMapping->getAnnotation())) {
            $coverFishResult = $this->setValidationWarning(
                $coverFishResult,
                CoverFishMessageWarning::PHPUNIT_NO_DOCBLOCK_FOR_METHOD
            );
        }

        return $coverFishResult;
    }
461655
public void warning(String message, String sourceString,
                      int position, int startPosition, int endPosition,
                      Object info) {
    report(new AnnotationReport(Kind.WARNING, message, sourceString,
                                position, startPosition, endPosition, info));
  }
290049
private static SoyMsgSelectPart buildMsgPartForSelect(
      MsgSelectNode msgSelectNode, MsgNode msgNode) {

    // This is the list of the cases.
    ImmutableList.Builder<SoyMsgPart.Case<String>> selectCases = ImmutableList.builder();

    for (CaseOrDefaultNode child : msgSelectNode.getChildren()) {
      ImmutableList<SoyMsgPart> caseMsgParts =
          buildMsgPartsForChildren((MsgBlockNode) child, msgNode);
      String caseValue;
      if (child instanceof MsgSelectCaseNode) {
        caseValue = ((MsgSelectCaseNode) child).getCaseValue();
      } else if (child instanceof MsgSelectDefaultNode) {
        caseValue = null;
      } else {
        throw new AssertionError("Unidentified node under a select node.");
      }
      selectCases.add(SoyMsgPart.Case.create(caseValue, caseMsgParts));
    }

    return new SoyMsgSelectPart(msgNode.getSelectVarName(msgSelectNode), selectCases.build());
  }
254885
public function validateClassFQNMapping(CoverFishMapping $coverMapping, CoverFishResult $coverFishResult)
    {
        $classReflectionResult = $this->validateReflectionClass($coverMapping->getClassFQN());
        if ($classReflectionResult instanceof CoverFishMessageError) {
            $coverFishResult = $this->setValidationError(
                $coverFishResult,
                $classReflectionResult->getMessageCode()
            );
        }

        return $coverFishResult;
    }
1353144
private static void prettyPrintWarningMessage(final List<String> results, final String message) {
        for (final String line: message.split("\\r?\\n")) {
            final StringBuilder builder = new StringBuilder(line);
            while (builder.length() > TEXT_WARNING_WIDTH) {
                int space = getLastSpace(builder, TEXT_WARNING_WIDTH);
                if (space <= 0) space = TEXT_WARNING_WIDTH;
                results.add(String.format("%s%s", TEXT_WARNING_PREFIX, builder.substring(0, space)));
                builder.delete(0, space + 1);
            }
            results.add(String.format("%s%s", TEXT_WARNING_PREFIX, builder));
        }
    }
358372
public void displayWarning(final String message) {
        notificationMessage.showNotification(SPUIStyleDefinitions.SP_NOTIFICATION_WARNING_MESSAGE_STYLE, null, message,
                true);
    }
416363
private function writeSingleMappingResult(
        CoverFishPHPUnitTest $coverFishTest,
        CoverFishResult $coverFishResult
    ) {
        /** @var CoverFishMapping $coverMappings */
        foreach ($coverFishTest->getCoverMappings() as $coverMappings) {
            $coverFishResult->addTestCount();
            if (false === $coverMappings->getValidatorResult()->isPass()) {
                $this->scanFailure = true;
                $this->writeFailureStream($coverFishResult, $coverFishTest, $coverMappings);
                $this->writeProgress(self::MACRO_FAILURE);
                // stop on failure defined? break ... do not check further methods, exit!
                if ($this->scanner->isStopOnFailure()) {
                    break;
                }

            } else {
                $coverFishResult->addPassCount();
                $this->writeProgress(self::MACRO_PASS);
            }
        }

        if (count($coverFishTest->getCoverMappings()) === 0) {
            $this->writeProgress(self::MACRO_SKIPPED);
        }
    }
112072
public static Message warn(Entity entity, String key, String... args) {
        return message(MessageType.WARN, entity, key, args);
    }
933534
public function & SetCode ($code, $codeMessage = NULL) {
		/** @var $this \MvcCore\Response */
		$this->code = $code;
		if ($codeMessage !== NULL) $this->codeMessage = $codeMessage;
		http_response_code($code);
		return $this;
	}
1178465
@Override
    public String getMessage() {
        if (message_ != null) {
            return message_;
        }

        if (getCause() != null) {
            return getCause().getMessage();
        }

        switch (code_) {
            case UNSPECIFIED_ERR:
                return "unknown error";
            case NOT_SUPPORTED_ERR:
                return "not supported";
            case SYNTAX_ERR:
                return "syntax error";
            default:
                return null;
        }
    }