Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for catch (0.2 sec)

  1. src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java

         */
        public static ResultSet executeQuery(final PreparedStatement ps) throws SQLRuntimeException {
            assertArgumentNotNull("ps", ps);
    
            try {
                return ps.executeQuery();
            } catch (final SQLException ex) {
                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * 更新を実行します。
         *
         * @param ps
         *            {@link PreparedStatement}。{@literal null}であってはいけません
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

                } catch (final Exception e) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Failed to set a property.", e);
                    }
                }
            }
            try {
                factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
            } catch (final ParserConfigurationException e) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/crypto/CachedCipher.java

                    cipher.init(Cipher.ENCRYPT_MODE, sksSpec);
                } catch (final InvalidKeyException e) {
                    throw new InvalidKeyRuntimeException(e);
                } catch (final NoSuchAlgorithmException e) {
                    throw new NoSuchAlgorithmRuntimeException(e);
                } catch (final NoSuchPaddingException e) {
                    throw new NoSuchPaddingRuntimeException(e);
                }
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/zip/ZipInputStreamUtil.java

         */
        public static ZipEntry getNextEntry(final ZipInputStream zis) {
            assertArgumentNotNull("zis", zis);
    
            try {
                return zis.getNextEntry();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link ZipInputStream#reset()}の例外処理をラップするメソッドです。
         *
         * @param zis
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            if (propertyType == java.util.Date.class) {
                try {
                    return TimestampConversionUtil.toDate(arg);
                } catch (final ParseRuntimeException ex) {
                    try {
                        return DateConversionUtil.toDate(arg);
                    } catch (final ParseRuntimeException ex2) {
                        return TimeConversionUtil.toDate(arg);
                    }
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/sql/StatementUtil.java

            assertArgumentNotNull("statement", statement);
            assertArgumentNotEmpty("sql", sql);
    
            try {
                return statement.execute(sql);
            } catch (final SQLException ex) {
                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * フェッチサイズを設定します。
         *
         * @param statement
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/net/URLUtil.java

            try {
                final URLConnection connection = url.openConnection();
                connection.setUseCaches(false);
                return connection.getInputStream();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * URLが参照するリモートオブジェクトへの接続を表す{@link URLConnection}オブジェクトを返します。
         *
         * @param url
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/OutputStreamUtil.java

         */
        public static FileOutputStream create(final File file) {
            assertArgumentNotNull("file", file);
    
            try {
                return new FileOutputStream(file);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link OutputStream}をflushします。
         *
         * @param out
         *            出力ストリーム
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/xml/DocumentBuilderUtil.java

            assertArgumentNotNull("builder", builder);
            assertArgumentNotNull("is", is);
    
            try {
                return builder.parse(is);
            } catch (final SAXException e) {
                throw new SAXRuntimeException(e);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            try {
                list.getEntry(-1);
                fail();
            } catch (final ClIndexOutOfBoundsException ex) {
                System.out.println(ex);
            }
            try {
                list.getEntry(3);
                fail();
            } catch (final ClIndexOutOfBoundsException ex) {
                System.out.println(ex);
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top