- Sort Score
- Result 10 results
- Languages All
Results 471 - 480 of 1,205 for Exceptions (0.06 sec)
-
BooleanConversionUtilTest.java
org.codelibs.core.convert; L17: L18:import junit.framework.TestCase; L19: L20:/** L21: * @author higa L22: * L23: */ L24:public class BooleanConversionUtilTest extends TestCase { L25: L26: /** L27: * @throws Exception L28: */ L29: public void testToBoolean() throws Exception { L30: assertEquals("1", Boolean.TRUE, BooleanConversionUtil.toBoolean(Integer.valueOf(1))); L31: assertEquals("2", Boolean.FALSE, BooleanConversionUtil.toBoolean(Integer.valueOf(0))); L32: assertEquals("3",...github.com/codelibs/corelib/src/test/java/org/c...Thu Mar 07 01:59:08 UTC 2024 1.5K bytes -
BeanDescImpl.java
sionUtil; L52:import org.codelibs.core.convert.ShortConversionUtil; L53:import org.codelibs.core.exception.BeanFieldSetAccessibleFailureException; L54:import org.codelibs.core.exception.ConstructorNotFoundRuntimeException; L55:import org.codelibs.core.exception.FieldNotFoundRuntimeException; L56:import org.codelibs.core.exception.MethodNotFoundRuntimeException; L57:import org.codelibs.core.exception.PropertyNotFoundRuntimeException; L58:import org.codelibs.core.lang.ClassUtil; L59:import org.cod...github.com/codelibs/corelib/src/main/java/org/c...Thu Mar 07 01:59:08 UTC 2024 26.1K bytes -
AdminDesignAction.java
"<%=$1%>") L361: .replace(TRY_STATEMENT, "<% try{ %>") L362: .replace(CACHE_AND_SESSION_INVALIDATE_STATEMENT, "<% }catch(Exception e){session.invalidate();} %>"); L363: } L364: L365: public static String encodeJsp(final String value) { L366: return value.replace("<% try{ %>", TRY_STATEMENT).replace("<% }catch(Exception e){session.invalidate();} %>", L367: CACHE_AND_SESSION_INVALIDATE_STATEMENT); L368: } L369:}...github.com/codelibs/fess/src/main/java/org/code...Fri Oct 11 21:11:58 UTC 2024 16.1K bytes -
CommonPoolUtil.java
currentThread.getContextClassLoader(); L33: currentThread.setContextClassLoader(CommonPoolUtil.class.getClassLoader()); L34: try { L35: task.run(); L36: } catch (final Exception e) { L37: logger.error("Uncaught exception from " + task, e); L38: } finally { L39: currentThread.setContextClassLoader(orignal); L40: } L41: }); L42: } L43:}...github.com/codelibs/corelib/src/main/java/org/c...Thu Mar 07 01:59:08 UTC 2024 1.5K bytes -
ApiAdminSearchlistAction.java
tus; L35:import org.codelibs.fess.app.web.api.admin.FessApiAdminAction; L36:import org.codelibs.fess.entity.SearchRenderData; L37:import org.codelibs.fess.es.client.SearchEngineClient; L38:import org.codelibs.fess.exception.InvalidQueryException; L39:import org.codelibs.fess.exception.ResultOffsetExceededException; L40:import org.codelibs.fess.helper.SearchHelper; L41:import org.codelibs.fess.util.ComponentUtil; L42:import org.lastaflute.web.Execute; L43:import org.lastaflute.web.response.JsonResponse;...github.com/codelibs/fess/src/main/java/org/code...Wed Jul 24 09:03:45 UTC 2024 10.2K bytes -
BigIntegerConversionUtilTest.java
org.codelibs.core.convert; L17: L18:import junit.framework.TestCase; L19: L20:/** L21: * @author higa L22: * L23: */ L24:public class BigIntegerConversionUtilTest extends TestCase { L25: L26: /** L27: * @throws Exception L28: */ L29: public void testToBigIntegerForEmptyString() throws Exception { L30: assertNull(BigIntegerConversionUtil.toBigInteger("")); L31: } L32:}...github.com/codelibs/corelib/src/test/java/org/c...Thu Mar 07 01:59:08 UTC 2024 960 bytes -
AdminDataconfigAction.java
getDataConfig(form).ifPresent(entity -> { L234: try { L235: dataConfigService.store(entity); L236: saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL)); L237: } catch (final Exception e) { L238: logger.warn("Failed to process a request.", e); L239: throwValidationError(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)), L240: this::asEditHtml);...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 17.5K bytes -
TreeMultisetTest.java
"e").inOrder(); L258: L259: subset.clear(); L260: assertThat(elementSet).containsExactly("a", "f").inOrder(); L261: assertThat(subset).isEmpty(); L262: assertEquals(3, ms.size()); L263: } L264: L265: public void testCustomComparator() throws Exception { L266: Comparator<String> comparator = L267: new Comparator<String>() { L268: @Override L269: public int compare(String o1, String o2) { L270: return o2.compareTo(o1); L271: } L272: }; L273:...github.com/google/guava/android/guava-tests/tes...Sat Oct 19 00:05:46 UTC 2024 12.9K bytes -
UnsignedBytesTest.java
assertCastFails(long value) { L77: try { L78: UnsignedBytes.checkedCast(value); L79: fail("Cast to byte should have failed: " + value); L80: } catch (IllegalArgumentException ex) { L81: assertWithMessage(value + " not found in exception text: " + ex.getMessage()) L82: .that(ex.getMessage().contains(String.valueOf(value))) L83: .isTrue(); L84: } L85: } L86: L87: public void testCompare() { L88: // This is the only ordering for primitives that does not have...github.com/google/guava/android/guava-tests/tes...Fri Oct 18 19:07:49 UTC 2024 13.4K bytes -
SynchronousGet.java
okhttp3.Headers; L20:import okhttp3.OkHttpClient; L21:import okhttp3.Request; L22:import okhttp3.Response; L23: L24:public final class SynchronousGet { L25: private final OkHttpClient client = new OkHttpClient(); L26: L27: public void run() throws Exception { L28: Request request = new Request.Builder() L29: .url("https://publicobject.com/helloworld.txt") L30: .build(); L31: L32: try (Response response = client.newCall(request).execute()) { L33: if (!response.isSuccessful())...github.com/square/okhttp/samples/guide/src/main...Sun May 22 01:29:42 UTC 2016 1.5K bytes