Search Options

Results per page
Sort
Preferred Languages
Advance

Results 691 - 700 of 2,976 for throw (0.04 sec)

  1. src/main/java/jcifs/pac/PacLogonInfo.java

        /**
         * Constructs a PAC logon information object from raw PAC data.
         * @param data the raw PAC logon info buffer data
         * @throws PACDecodingException if the data is malformed or invalid
         */
        public PacLogonInfo(final byte[] data) throws PACDecodingException {
            try {
                final PacDataInputStream pacStream = new PacDataInputStream(new DataInputStream(new ByteArrayInputStream(data)));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build();
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/config/PropertyConfigurationTest.java

        void testNullProperties() throws CIFSException {
            // PropertyConfiguration doesn't handle null properties
            // It should throw NullPointerException
            assertThrows(NullPointerException.class, () -> {
                new PropertyConfiguration(null);
            });
        }
    
        @Test
        @DisplayName("Should handle empty properties")
        void testEmptyProperties() throws CIFSException {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Expected error";
            try {
                throw new FessSystemException(expectedMessage);
            } catch (FessSystemException e) {
                assertEquals(expectedMessage, e.getMessage());
                assertNull(e.getCause());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Offset limit exceeded: 10000";
    
            try {
                throw new ResultOffsetExceededException(expectedMessage);
            } catch (ResultOffsetExceededException e) {
                assertEquals(expectedMessage, e.getMessage());
                assertNull(e.getCause());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java

                file.deleteOnExit();
                FileUtil.writeBytes(file.getAbsolutePath(), content.getBytes());
                return file;
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        private File createScriptTempFileStdout(final int sleep) {
            String extention;
            String content;
            if (File.separator.equals("/")) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SID.java

         *
         * @param textual the textual representation of the SID
         * @throws SmbException if the textual format is invalid
         */
        public SID(final String textual) throws SmbException {
            final StringTokenizer st = new StringTokenizer(textual, "-");
            if (st.countTokens() < 3 || !st.nextToken().equals("S")) {
                // need S-N-M
                throw new SmbException("Bad textual SID format: " + textual);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

                } catch (NoSuchFieldException e) {
                    clazz = clazz.getSuperclass();
                }
            }
            throw new NoSuchFieldException(fieldName);
        }
    
        private static void setPrivateField(Object target, String fieldName, Object value) throws Exception {
            Class<?> clazz = target.getClass();
            while (clazz != null) {
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/AbstractIntervalController.java

                    break;
                }
            } catch (final CrawlerSystemException e) {
                if (!ignoreException) {
                    throw e;
                }
            } catch (final Exception e) {
                if (!ignoreException) {
                    throw new CrawlerSystemException("Could not stop a process.", e);
                }
            }
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/HMACT64.java

        private HMACT64(final HMACT64 hmac) throws CloneNotSupportedException {
            super("HMACT64");
            this.ipad = hmac.ipad;
            this.opad = hmac.opad;
            this.md5 = (MessageDigest) hmac.md5.clone();
        }
    
        @Override
        public Object clone() {
            try {
                return new HMACT64(this);
            } catch (final CloneNotSupportedException ex) {
                throw new IllegalStateException(ex.getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top