Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for getRootCause (0.21 sec)

  1. guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertSame(exception, Throwables.getRootCause(exception));
      }
    
      public void testGetRootCause_SingleWrapped() {
        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException exception = new SomeChainingException(cause);
        assertSame(cause, Throwables.getRootCause(exception));
      }
    
      public void testGetRootCause_DoubleWrapped() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertSame(exception, Throwables.getRootCause(exception));
      }
    
      public void testGetRootCause_SingleWrapped() {
        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException exception = new SomeChainingException(cause);
        assertSame(cause, Throwables.getRootCause(exception));
      }
    
      public void testGetRootCause_DoubleWrapped() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/transport/TransportException.java

            this.rootCause = rootCause;
        }
        public TransportException( String msg, Throwable rootCause ) {
            super( msg );
            this.rootCause = rootCause;
        }
    
        public Throwable getRootCause() {
            return rootCause;
        }
        public String toString() {
            if( rootCause != null ) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter( sw );
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 958 bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/DcerpcException.java

            return this.error;
        }
    
    
        /**
         * 
         * @return the root cause
         * @deprecated use {@link #getCause()}
         */
        @Deprecated
        public Throwable getRootCause () {
            return getCause();
        }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun May 17 09:02:44 GMT 2020
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/transport/TransportException.java

        public TransportException ( String msg, Throwable rootCause ) {
            super(msg, rootCause);
        }
    
    
        /**
         * 
         * @return root cause
         */
        @Deprecated
        public Throwable getRootCause () {
            return getCause();
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

        }
    
        protected IOException seToIoe(SmbException se) {
            IOException ioe = se;
            Throwable root = se.getRootCause();
            if (root instanceof TransportException) {
                ioe = (TransportException)root;
                root = ((TransportException)ioe).getRootCause();
            }
            if (root instanceof InterruptedException) {
                ioe = new InterruptedIOException(root.getMessage());
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcException.java

        }
        public DcerpcException(String msg, Throwable rootCause) {
            super(msg);
            this.rootCause = rootCause;
        }
        public int getErrorCode() {
            return error;
        }
        public Throwable getRootCause() {
            return rootCause;
        }
        public String toString() {
            if (rootCause != null) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbException.java

         */
        public int getNtStatus () {
            return this.status;
        }
    
    
        /**
         * 
         * @return cause
         */
        @Deprecated
        public Throwable getRootCause () {
            return this.getCause();
        }
    
    
        /**
         * @param e
         * @return a CIFS exception wrapped in an SmbException
         */
        static SmbException wrap ( CIFSException e ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 05 07:16:55 GMT 2018
    - 5.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbException.java

            status = winerr ? errcode : getStatusByCode( errcode );
        }
    
        public int getNtStatus() {
            return status;
        }
        public Throwable getRootCause() {
            return rootCause;
        }
        public String toString() {
            if( rootCause != null ) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter( sw );
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Throwables.java

       *
       * <pre>
       * assertEquals("Unable to assign a customer id", Throwables.getRootCause(e).getMessage());
       * </pre>
       *
       * @throws IllegalArgumentException if there is a loop in the causal chain
       */
      public static Throwable getRootCause(Throwable throwable) {
        // Keep a second pointer that slowly walks the causal chain. If the fast pointer ever catches
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
Back to top