Search Options

Results per page
Sort
Preferred Languages
Advance

Results 431 - 440 of 1,024 for Exceptions (0.05 sec)

  1. ThreadDumpUtil.java

    java.io.OutputStreamWriter; L22:import java.io.Writer; L23:import java.util.Map; L24:import java.util.function.Consumer; L25: L26:import org.apache.logging.log4j.LogManager; L27:import org.apache.logging.log4j.Logger; L28:import org.codelibs.core.exception.IORuntimeException; L29:import org.codelibs.fess.Constants; L30: L31:public class ThreadDumpUtil { L32: private static final Logger logger = LogManager.getLogger(ThreadDumpUtil.class); L33: L34: protected ThreadDumpUtil() { L35: // noop...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      2.5K bytes
  2. PostMultipart.java

    private static final String IMGUR_CLIENT_ID = "9199fdef135c122"; L33: private static final MediaType MEDIA_TYPE_PNG = MediaType.get("image/png"); L34: L35: private final OkHttpClient client = new OkHttpClient(); L36: L37: public void run() throws Exception { L38: // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image L39: RequestBody requestBody = new MultipartBody.Builder() L40: .setType(MultipartBody.FORM) L41: .addFormDataPart("title", "Square...
    github.com/square/okhttp/samples/guide/src/main...
    Mon Jun 24 12:59:42 UTC 2019
      2.2K bytes
  3. TestLogHandler.java

    logged by the code under test. Example: L30: * L31: * <pre> L32: * TestLogHandler handler; L33: * L34: * protected void setUp() throws Exception { L35: * super.setUp(); L36: * handler = new TestLogHandler(); L37: * SomeClass.logger.addHandler(handler); L38: * addTearDown(new TearDown() { L39: * public void tearDown() throws Exception { L40: * SomeClass.logger.removeHandler(handler); L41: * } L42: * }); L43: * } L44: * L45: * public void test() { L46:...
    github.com/google/guava/guava-testlib/src/com/g...
    Fri Jun 21 20:53:25 UTC 2024
      2.8K bytes
  4. DoubleUtilsTest.java

    @AndroidIncompatible // no FpUtils and no Math.nextDown in old versions L36: public void testNextDown() throws Exception { L37: Method jdkNextDown = getJdkNextDown(); L38: for (double d : FINITE_DOUBLE_CANDIDATES) { L39: assertEquals(jdkNextDown.invoke(null, d), DoubleUtils.nextDown(d)); L40: } L41: } L42: L43: private static Method getJdkNextDown() throws Exception { L44: try { L45: return Math.class.getMethod("nextDown", double.class); L46: } catch (NoSuchMethodException...
    github.com/google/guava/guava-tests/test/com/go...
    Wed Jul 03 18:10:55 UTC 2024
      3K bytes
  5. SynonymFileTest.java

    opensearch and dictionaryManager L39: synonymFile = new SynonymFile("1", file1.getAbsolutePath(), new Date()); L40: } L41: L42: @Override L43: public void tearDown() throws Exception { L44: file1.delete(); L45: } L46: */ L47: L48: @Override L49: public void setUp() throws Exception { L50: super.setUp(); L51: synonymFile = new SynonymFile("1", "dummy", new Date()); L52: List<SynonymItem> itemList = new ArrayList<>(); L53: itemList.add(new...
    github.com/codelibs/fess/src/test/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      9K bytes
  6. ApiAdminFileauthAction.java

    L89: L90: body.crudMode = CrudMode.CREATE; L91: final FileAuthentication fileAuth = getFileAuthentication(body).map(entity -> { L92: try { L93: fileAuthService.store(entity); L94: } catch (final Exception e) { L95: logger.warn("Failed to process a request.", e); L96: throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e))); L97: } L98: return...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:53:18 UTC 2024
      6.8K bytes
  7. ApiAdminWebconfigAction.java

    validateApi(body, messages -> {}); L87: body.crudMode = CrudMode.CREATE; L88: final WebConfig webConfig = getWebConfig(body).map(entity -> { L89: try { L90: webConfigService.store(entity); L91: } catch (final Exception e) { L92: logger.warn("Failed to process a request.", e); L93: throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e))); L94: } L95: return...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:53:18 UTC 2024
      7K bytes
  8. AccessTokenHelperTest.java

    limitations under the License. L15: */ L16:package org.codelibs.fess.helper; L17: L18:import static org.junit.jupiter.api.Assertions.assertThrows; L19: L20:import java.util.ArrayList; L21:import java.util.List; L22: L23:import org.codelibs.fess.exception.InvalidAccessTokenException; L24:import org.codelibs.fess.unit.UnitFessTestCase; L25:import org.dbflute.utflute.mocklet.MockletHttpServletRequest; L26: L27:public class AccessTokenHelperTest extends UnitFessTestCase { L28: L29: protected static...
    github.com/codelibs/fess/src/test/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      3.1K bytes
  9. Striped64.java

    static final long valueOffset; L119: L120: static { L121: try { L122: UNSAFE = getUnsafe(); L123: Class<?> ak = Cell.class; L124: valueOffset = UNSAFE.objectFieldOffset(ak.getDeclaredField("value")); L125: } catch (Exception e) { L126: throw new Error(e); L127: } L128: } L129: } L130: L131: /** L132: * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this L133: * class, we use a suboptimal int[] representation...
    github.com/google/guava/android/guava/src/com/g...
    Fri Jun 14 17:55:55 UTC 2024
      11.5K bytes
  10. CharMatcherTest.java

    'q')); L171: doTestNull(forPredicate(Predicates.equalTo('c'))); L172: } L173: L174: private void doTestEmpty(CharMatcher matcher) throws Exception { L175: reallyTestEmpty(matcher); L176: reallyTestEmpty(matcher.negate()); L177: reallyTestEmpty(matcher.precomputed()); L178: } L179: L180: private void reallyTestEmpty(CharMatcher matcher) throws Exception { L181: assertEquals(-1, matcher.indexIn("")); L182: assertEquals(-1, matcher.indexIn("", 0)); L183: try { L184: matcher.indexIn("",...
    github.com/google/guava/android/guava-tests/tes...
    Wed Feb 21 18:32:41 UTC 2024
      30.1K bytes
Back to top