Tabnine Logo
Severity
Code IndexAdd Tabnine to your IDE (free)

How to use
Severity
in
com.oath.micro.server.errors

Best Java code snippets using com.oath.micro.server.errors.Severity (Showing top 2 results out of 315)

origin: aol/micro-server

@Subscribe
public void error(ErrorCode c) {
  registry.meter(prefix + ".errors")
      .mark();
  registry.counter(prefix + ".errors-count")
      .inc();
  if (this.configuration.isErrorsByCode()) {
    registry.meter(name(c))
        .mark();
    registry.counter(name(c) + "-count")
        .inc();
  }
  if (this.configuration.isErrorsByType()) {
    registry.meter(prefix + ".error-severity-" + c.getSeverity()
                           .name())
        .mark();
    registry.counter(prefix + ".error-severity-" + c.getSeverity()
                            .name()
        + "-count")
        .inc();
  }
}
origin: aol/micro-server

public ErrorEvent(final BaseException exception) {
  code = exception.getErrorCode();
  message = exception.getMessage();
  fatal = Severity.FATAL.equals(code.getSeverity());
}
com.oath.micro.server.errorsSeverity

Most used methods

  • equals
  • name

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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