Tabnine Logo
Exception.fillInStackTrace
Code IndexAdd Tabnine to your IDE (free)

How to use
fillInStackTrace
method
in
java.lang.Exception

Best Java code snippets using java.lang.Exception.fillInStackTrace (Showing top 20 results out of 1,548)

origin: gocd/gocd

public void building() {
  if (state != null && !isReRun()) {
    LOG.warn("Expected stage [{}] to have no state, but was {}", identifier, state, new Exception().fillInStackTrace());
  }
  state = StageState.Building;
}
origin: jenkinsci/jenkins

Throwable e = new Exception().fillInStackTrace();
LOGGER.log(Level.WARNING,msg,e);
origin: robolectric/robolectric

Exception e = exceptions.get(dataSource);
if (e != null) {
 e.fillInStackTrace();
 if (e instanceof IOException) {
  throw (IOException)e;
origin: gocd/gocd

private void logIfJobIsCompleted(JobInstance jobInstance) {
  JobState currentState = getCurrentState(jobInstance.getId());
  if (currentState.isCompleted() && !jobInstance.isCopy()) {
    String message = String.format(
        "State change for a completed Job is not allowed. Job %s is currently State=%s, Result=%s",
        jobInstance.getIdentifier(), jobInstance.getState(), jobInstance.getResult());
    LOG.warn(message, new Exception().fillInStackTrace());
  }
}
origin: geoserver/geoserver

if (LOGGER.isLoggable(Level.FINE)) {
  Exception e = new Exception("Full stack trace for the session creation path");
  e.fillInStackTrace();
  LOGGER.log(
      Level.FINE,
if (LOGGER.isLoggable(Level.INFO)) {
  Exception e = new Exception("Full stack trace for the session creation path");
  e.fillInStackTrace();
  LOGGER.log(
      Level.INFO,
origin: wildfly/wildfly

            final DiscoveryGroupConfiguration discoveryGroupConfiguration,
            final TransportConfiguration[] transportConfigs) {
traceException.fillInStackTrace();
origin: alibaba/jstorm

public static void test() {
  
  String[] className = Thread.currentThread().getStackTrace()[1].getClassName().split("\\.");
  String topologyName = className[className.length - 1];
  
  try {
    TopologyBuilder builder = new TopologyBuilder();
    builder.setSpout("integer", new RandomIntegerSpout(), 1);
    builder.setBolt("slidingsum", new SlidingWindowSumBolt().withWindow(new Count(30), new Count(10)), 1)
        .shuffleGrouping("integer");
    builder.setBolt("tumblingavg", new TumblingWindowAvgBolt().withTumblingWindow(new Count(3)), 1)
        .shuffleGrouping("slidingsum");
    builder.setBolt("printer", new PrinterBolt(), 1).shuffleGrouping("tumblingavg");
    
    conf.setDebug(true);
    
    JStormHelper.runTopology(builder.createTopology(), topologyName, conf, 60,
        new JStormHelper.CheckAckedFail(conf), isLocal);
  } catch (Exception e) {
    // TODO Auto-generated catch block
    e.fillInStackTrace();
    Assert.fail("Failed to submit topology");
  }
}

origin: geotools/geotools

public NetCDFImageReader(ImageReaderSpi originatingProvider) {
  super(originatingProvider);
  if (NetCDFUtilities.TRACE_ENABLED) {
    tracer = new Exception();
    tracer.fillInStackTrace();
  }
}
origin: camunda/camunda-bpm-platform

/**
 * Creates a stack trace representing the existing thread's current state.
 * @return a string object representing the current state.
 * TODO investigate if we simply should store {@link java.lang.Thread#getStackTrace()} elements
 */
protected static String getThreadDump() {
  Exception x = new Exception();
  x.fillInStackTrace();
  return getStackTrace(x);
}
origin: org.apache.logging.log4j/log4j-core

pMarker1.addParents(gfMarker);
final Exception sourceHelper = new Exception();
sourceHelper.fillInStackTrace();
final Exception cause = new NullPointerException("testNPEx");
sourceHelper.fillInStackTrace();
final StackTraceElement source = sourceHelper.getStackTrace()[0];
final IOException ioException = new IOException("testIOEx", cause);
origin: geotools/geotools

public ShapefileDataStore(URL url) {
  shpFiles = new ShpFiles(url);
  if (TRACE_ENABLED) {
    trace = new Exception();
    trace.fillInStackTrace();
  }
  shpManager = new ShapefileSetManager(shpFiles, this);
  indexManager = new IndexManager(shpFiles, this);
}
origin: advantageous/qbit

ex.fillInStackTrace();
logger.debug("Health Service CREATED", ex);
origin: geotools/geotools

tracer.fillInStackTrace();
origin: org.apache.aries.testsupport/org.apache.aries.testsupport.unit

 public Object handle(MethodCall methodCall, Skeleton parent) throws Exception
 {
  thingToThrow.fillInStackTrace();
  throw thingToThrow;
 }
});
origin: geotools/geotools

tracer.fillInStackTrace();
origin: freenet/fred

  @Override
  public final Throwable fillInStackTrace() {
    if (shouldFillInStackTrace()) {
      return super.fillInStackTrace();
    }
    return null;
  }
}
origin: org.apache.tomcat/tomcat-jdbc

/**
 * Creates a stack trace representing the existing thread's current state.
 * @return a string object representing the current state.
 * TODO investigate if we simply should store {@link java.lang.Thread#getStackTrace()} elements
 */
protected static String getThreadDump() {
  Exception x = new Exception();
  x.fillInStackTrace();
  return getStackTrace(x);
}
origin: apache/cxf

public void run() {
  try {
    startSignal.await();
    checkBook(address, id, expected);
    doneSignal.countDown();
  } catch (InterruptedException ex) {
    // ignore
  } catch (Exception ex) {
    ex.fillInStackTrace();
    error = ex;
  }
}
origin: apache/cxf

public String sayHi() {
  // throw the exception out with some cause
  Exception cause = new IllegalArgumentException("Get a wrong name <sayHi>",
                          new NullPointerException("Test cause."));
  cause.fillInStackTrace();
  throw new Fault("sayHiFault", LOG, cause);
}
origin: Netflix/spectator

@Test
public void numStackTraces() {
 Counter c = registry.counter("log4j.numStackTraces",
   "loglevel", "5_DEBUG",
   "exception", "IllegalArgumentException",
   "file", "?"); // Location is unknown because it is not called via logger
 Assertions.assertEquals(0, c.count());
 Exception e = new IllegalArgumentException("foo");
 e.fillInStackTrace();
 appender.append(newEvent(Level.DEBUG, e));
 Assertions.assertEquals(1, c.count());
}
java.langExceptionfillInStackTrace

Popular methods of Exception

  • getMessage
  • printStackTrace
  • <init>
    Constructs a new exception with the specified cause and a detail message of (cause==null ? null : c
  • toString
  • getCause
  • getLocalizedMessage
  • getStackTrace
  • addSuppressed
  • initCause
  • setStackTrace
  • getSuppressed
  • logWithStack
  • getSuppressed,
  • logWithStack

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • 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