Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getCause (0.18 sec)

  1. src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java

            assertThat(clIllegalStateException.getMessage(), is("hoge"));
            assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.exception.ClIllegalStateException#SIllegalStateException(java.lang.Throwable)}
         * .
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

                        next.getSQLState())).append("], [");
                next = next.getNextException();
            }
            Throwable t = cause.getCause();
            while (t != null) {
                buf.append(t.getMessage()).append("], [");
                t = t.getCause();
            }
            buf.setLength(buf.length() - 4);
            return new String(buf);
        }
    
    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/test/java/org/codelibs/core/exception/SUnsupportedOperationExceptionTest.java

                    new ClUnsupportedOperationException("hoge", new NullPointerException());
            assertThat(clUnsupportedOperationException.getMessage(), is("hoge"));
            assertThat(clUnsupportedOperationException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.exception.ClUnsupportedOperationException#SUnsupportedOperationException(java.lang.Throwable)}
         * .
    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)
  4. src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java

        public void testGetCause() throws Exception {
            final Throwable t = new NullPointerException("test");
            final ClRuntimeException ex = new ClRuntimeException("ECL0017", asArray(t), t);
            assertThat(ex.getCause(), is(t));
            ex.printStackTrace();
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/MethodUtil.java

            assertArgumentNotNull("method", method);
    
            try {
                return (T) method.invoke(target, args);
            } catch (final InvocationTargetException ex) {
                final Throwable t = ex.getCause();
                if (t instanceof RuntimeException) {
                    throw (RuntimeException) t;
                }
                if (t instanceof Error) {
                    throw (Error) t;
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/exception/ConverterRuntimeExceptionTest.java

            System.out.println(e.getMessage());
            assertThat(e.getPropertyName(), is("hoge"));
            assertThat(e.getValue(), is((Object) "xxx"));
            assertThat(e.getCause().getMessage(), is("cause"));
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.2K bytes
    - Viewed (0)
Back to top