congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Reporter.warning
Code IndexAdd Tabnine to your IDE (free)

How to use
warning
method
in
net.sergeych.tools.Reporter

Best Java code snippets using net.sergeych.tools.Reporter.warning (Showing top 5 results out of 315)

origin: UniversaBlockchain/universa

  privateKey = new PrivateKey(Do.read(keyFileName));
} catch (IOException e) {
  reporter.warning("can't read privte Key file: " + keyFileName);
reporter.warning("\nUser private key is not set, generating new one.");
reporter.message("new private key has been generated");
privateKey = new PrivateKey(2048);
origin: UniversaBlockchain/universa

            reporter.warning("errors from " + c.getNodeNumber() + ": " + r.errors);
          break;
  reporter.message("State consensus found:" + consensus[0]);
else {
  reporter.warning("no consensus found " + states.size());
origin: UniversaBlockchain/universa

static public BasicHttpClientSession getSession(int nodeNumber) throws IOException {
  if (session == null) {
    String keyFileName = prefs.get("session_" + nodeNumber, null);
    if (keyFileName != null) {
      reporter.verbose("Loading session from " + keyFileName);
      try {
        session = BasicHttpClientSession.reconstructSession(Boss.unpack(Do.read(keyFileName)));
      } catch(FileNotFoundException e) {
        // it is ok - session is not reconstructed
      } catch (Exception e) {
        reporter.warning("can't read session file: " + keyFileName);
        e.printStackTrace();
      }
    } else {
      reporter.verbose("No session found at the prefs ");
    }
  }
  return session;
}
origin: UniversaBlockchain/universa

  reporter.verbose("Saldo looks good (zero)");
else
  reporter.warning("Saldo is not zero: "+saldo);
origin: UniversaBlockchain/universa

public ClientNetwork(BasicHttpClientSession session, boolean delayedStart) throws IOException {
  for (int i = 1; i < 10; i++) {
    try {
      client = new Client("http://node-" +
          Do.randomIntInRange(1, 10) +
          "-com.universa.io:8080", CLIMain.getPrivateKey(), session, delayedStart);
      break;
    } catch (IOException e) {
      reporter.warning("failed to read network from node " + i);
    }
  }
  if (client == null)
    throw new IOException("failed to connect to to the universa network");
  reporter.verbose("Read Universa network configuration: " + client.size() + " nodes");
  reporter.message("Network version: " + client.getVersion());
}
net.sergeych.toolsReporterwarning

Popular methods of Reporter

  • message
    message will be shown immediately or buffered and returned later in json mode.
  • getErrors
  • <init>
  • clear
  • console
    print to console only, does notthing ing queit mode. To it to not to pollute json output with visual
  • error
    Report error. Unless in JSON mode, will be printed immediately. Errors are 3-field objects with stri
  • getMessage
  • isQuiet
    See #setQuiet(boolean)
  • isVerboseMode
  • newLine
    Outputs newline on the console only (does nothing in quiet more).
  • report
    Get collected report as a Binder object.
  • reportJson
    Get collected report as JSON string
  • report,
  • reportJson,
  • setQuiet,
  • setVerboseMode,
  • verbose

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Path (java.nio.file)
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now