本文整理了Java中java.lang.RuntimeException.fillInStackTrace()
方法的一些代码示例,展示了RuntimeException.fillInStackTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RuntimeException.fillInStackTrace()
方法的具体详情如下:
包路径:java.lang.RuntimeException
类名称:RuntimeException
方法名:fillInStackTrace
暂无
代码示例来源:origin: redisson/redisson
@Override
public synchronized Throwable fillInStackTrace() {
return TRACE_CANCEL ? super.fillInStackTrace() : this;
}
}
代码示例来源:origin: redisson/redisson
@Override
public synchronized Throwable fillInStackTrace() {
return TRACE_NOCAPACITY ? super.fillInStackTrace() : this;
}
}
代码示例来源:origin: google/guava
@Override
public E next() {
ex.fillInStackTrace();
throw ex;
}
代码示例来源:origin: robolectric/robolectric
public void setDataSource(DataSource dataSource) {
RuntimeException e = exceptions.get(dataSource);
if (e != null) {
e.fillInStackTrace();
throw e;
}
this.dataSource = dataSource;
}
代码示例来源:origin: google/guava
@Override
public void remove() {
ex.fillInStackTrace();
throw ex;
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public IExpectationSetters<Object> andReturn(Object value) {
try {
state.andReturn(value);
return this;
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void andStubDelegateTo(Object delegateTo) {
try {
state.andStubDelegateTo(delegateTo);
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public IExpectationSetters<Object> anyTimes() {
try {
state.times(ZERO_OR_MORE);
return this;
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void checkOrder(boolean value) {
try {
state.checkOrder(value);
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public IExpectationSetters<Object> andAnswer(IAnswer<?> answer) {
try {
state.andAnswer(answer);
return this;
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void andStubReturn(Object value) {
try {
state.andStubReturn(value);
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void makeThreadSafe(boolean threadSafe) {
try {
state.makeThreadSafe(threadSafe);
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public IExpectationSetters<Object> andDelegateTo(Object answer) {
try {
state.andDelegateTo(answer);
return this;
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public IExpectationSetters<Object> andVoid() {
try {
state.andVoid();
return this;
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public IExpectationSetters<Object> once() {
try {
state.times(ONCE);
return this;
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void andStubAnswer(IAnswer<?> answer) {
try {
state.andStubAnswer(answer);
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public IExpectationSetters<Object> times(int times) {
try {
state.times(new Range(times));
return this;
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void verify() {
try {
state.verify();
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
} catch (AssertionErrorWrapper e) {
throw (AssertionError) e.getAssertionError().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void replay() {
try {
state.replay();
state = new ReplayState(behavior);
LastControl.reportLastControl(null);
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
}
}
代码示例来源:origin: org.easymock/easymock
@Override
public void verifyRecording() {
try {
state.verifyRecording();
} catch (RuntimeExceptionWrapper e) {
throw (RuntimeException) e.getRuntimeException().fillInStackTrace();
} catch (AssertionErrorWrapper e) {
throw (AssertionError) e.getAssertionError().fillInStackTrace();
}
}
内容来源于网络,如有侵权,请联系作者删除!