Search Options

Results per page
Sort
Preferred Languages
Advance

Results 591 - 600 of 1,205 for Exceptions (0.05 sec)

  1. UnsignedIntsTest.java

    // inclusive. L301: // L302: // Note: According to the spec, a NumberFormatException is thrown for a number that is not L303: // parseable, but the spec doesn't seem to say which exception is thrown for an invalid radix. L304: // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case L305: // (which seems to make more sense). L306: try { L307: UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1); L308: fail(); L309: } catch (NumberFormatException...
    github.com/google/guava/android/guava-tests/tes...
    Sat Oct 19 02:56:12 UTC 2024
      12.5K bytes
  2. Invokable.java

    L120: @SuppressWarnings("CatchingUnchecked") // sneaky checked exception L121: public final boolean trySetAccessible() { L122: // We can't call accessibleObject.trySetAccessible since that was added in Java 9 and this code L123: // should work on Java 8. So we emulate it this way. L124: try { L125: accessibleObject.setAccessible(true); L126: return true; L127: } catch (Exception e) { // sneaky checked exception L128: return false; L129: } L130: } L131: L132: /** See...
    github.com/google/guava/guava/src/com/google/co...
    Thu Dec 14 20:35:03 UTC 2023
      19.6K bytes
  3. Progress.java

    okhttp3.Response; L23:import okhttp3.ResponseBody; L24:import okio.Buffer; L25:import okio.BufferedSource; L26:import okio.ForwardingSource; L27:import okio.Okio; L28:import okio.Source; L29: L30:public final class Progress { L31: L32: public void run() throws Exception { L33: Request request = new Request.Builder() L34: .url("https://publicobject.com/helloworld.txt") L35: .build(); L36: L37: final ProgressListener progressListener = new ProgressListener() { L38: boolean firstUpdate = true;...
    github.com/square/okhttp/samples/guide/src/main...
    Sat Jan 12 03:31:36 UTC 2019
      3.9K bytes
  4. AbstractTester.java

    Runnable tearDown; L43: L44: // public so that it can be referenced in generated GWT tests. L45: @Override L46: public void setUp() throws Exception { L47: if (setUp != null) { L48: setUp.run(); L49: } L50: } L51: L52: // public so that it can be referenced in generated GWT tests. L53: @Override L54: public void tearDown() throws Exception { L55: if (tearDown != null) { L56: tearDown.run(); L57: } L58: } L59: L60: // public so that it can be referenced in generated GWT...
    github.com/google/guava/android/guava-testlib/s...
    Mon Oct 28 21:41:47 UTC 2024
      3.4K bytes
  5. RequestBodyCompression.java

    final Moshi moshi = new Moshi.Builder().build(); L48: private final JsonAdapter<Map<String, String>> mapJsonAdapter = moshi.adapter( L49: Types.newParameterizedType(Map.class, String.class, String.class)); L50: L51: public void run() throws Exception { L52: Map<String, String> requestBody = new LinkedHashMap<>(); L53: requestBody.put("longUrl", "https://publicobject.com/2014/12/04/html-formatting-javadocs/"); L54: RequestBody jsonRequestBody = RequestBody.create( L55: mapJson...
    github.com/square/okhttp/samples/guide/src/main...
    Sat May 25 18:02:55 UTC 2019
      3.8K bytes
  6. AbstractTester.java

    Runnable tearDown; L43: L44: // public so that it can be referenced in generated GWT tests. L45: @Override L46: public void setUp() throws Exception { L47: if (setUp != null) { L48: setUp.run(); L49: } L50: } L51: L52: // public so that it can be referenced in generated GWT tests. L53: @Override L54: public void tearDown() throws Exception { L55: if (tearDown != null) { L56: tearDown.run(); L57: } L58: } L59: L60: // public so that it can be referenced in generated GWT...
    github.com/google/guava/guava-testlib/src/com/g...
    Mon Oct 28 21:41:47 UTC 2024
      3.4K bytes
  7. SearchLogBhv.java

    org.apache.logging.log4j.Logger; L29:import org.codelibs.core.misc.Pair; L30:import org.codelibs.fess.es.log.bsbhv.BsSearchLogBhv; L31:import org.codelibs.fess.es.log.exentity.SearchLog; L32:import org.codelibs.fess.util.ComponentUtil; L33:import org.dbflute.exception.IllegalBehaviorStateException; L34:import org.dbflute.util.DfTypeUtil; L35: L36:/** L37: * @author FreeGen L38: */ L39:public class SearchLogBhv extends BsSearchLogBhv { L40: private static final Logger logger = LogManager.getLogger(SearchLogBhv.class);...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:37:57 UTC 2024
      4.8K bytes
  8. AdminGroupAction.java

    L193: getGroup(form).ifPresent(entity -> { L194: try { L195: groupService.store(entity); L196: saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL)); L197: } catch (final Exception e) { L198: logger.warn("Failed to add {}", entity, e); L199: throwValidationError(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)), L200: this::asEditHtml);...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:53:18 UTC 2024
      13.2K bytes
  9. AdminPathmapAction.java

    getPathMapping(form).ifPresent(entity -> { L189: try { L190: pathMappingService.store(entity); L191: saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL)); L192: } catch (final Exception e) { L193: logger.warn("Failed to process a request.", e); L194: throwValidationError(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)), L195: this::asEditHtml);...
    github.com/codelibs/fess/src/main/java/org/code...
    Thu Feb 22 01:53:18 UTC 2024
      13K bytes
  10. GenerateThumbnailJob.java

    L26:import org.apache.logging.log4j.LogManager; L27:import org.apache.logging.log4j.Logger; L28:import org.codelibs.core.lang.StringUtil; L29:import org.codelibs.core.timer.TimeoutTask; L30:import org.codelibs.fess.Constants; L31:import org.codelibs.fess.exception.JobProcessingException; L32:import org.codelibs.fess.exec.ThumbnailGenerator; L33:import org.codelibs.fess.helper.ProcessHelper; L34:import org.codelibs.fess.mylasta.direction.FessConfig; L35:import org.codelibs.fess.util.ComponentUtil; L36:import...
    github.com/codelibs/fess/src/main/java/org/code...
    Fri Oct 11 21:20:39 UTC 2024
      10.6K bytes
Back to top