List of usage examples for java.lang RuntimeException hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:org.nanocom.console.Application.java
/** * Runs the current application.// w ww. j a v a2 s .com * * @param input An Input instance * @param output An Output instance * * @return 0 if everything went fine, or an error code * * @throws RuntimeException When doRun returns a RuntimeException */ public int run(InputInterface input, OutputInterface output) throws RuntimeException { if (null == input) { input = new ArgsInput(new String[0]); } if (null == output) { output = new ConsoleOutput(); } int statusCode; try { statusCode = doRun(input, output); } catch (RuntimeException e) { if (!catchExceptions) { throw e; } if (output instanceof ConsoleOutputInterface) { renderException(e, ((ConsoleOutputInterface) output).getErrorOutput()); } else { renderException(e, output); } statusCode = e.hashCode(); } if (autoExit) { if (statusCode > 255) { statusCode = 255; } System.exit(statusCode); } return statusCode; }