Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for EmptyArgumentException (0.1 sec)

  1. src/main/java/org/codelibs/core/exception/EmptyArgumentException.java

    package org.codelibs.core.exception;
    
    /**
     * Exception thrown when an argument is empty.
     *
     * @author higa
     */
    public class EmptyArgumentException extends ClIllegalArgumentException {
    
        private static final long serialVersionUID = 4625805280526951642L;
    
        /**
         * Creates an {@link EmptyArgumentException}.
         *
         * @param argName
         *            Name of the argument
         * @param messageCode
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/security/MessageDigestUtilTest.java

     */
    package org.codelibs.core.security;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNull;
    import static org.junit.Assert.assertTrue;
    
    import org.codelibs.core.exception.EmptyArgumentException;
    import org.codelibs.core.exception.NoSuchAlgorithmRuntimeException;
    import org.junit.Test;
    
    /**
     * @author shinsuke
     *
     */
    public class MessageDigestUtilTest {
        /**
         *
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         * @param argValue
         *            The value of the argument.
         * @throws EmptyArgumentException
         *             If the argument is <code>null</code> or an empty string.
         */
        public static void assertArgumentNotEmpty(final String argName, final String argValue) {
            if (StringUtil.isEmpty(argValue)) {
                throw new EmptyArgumentException(argName, "ECL0010", asArray(argName));
            }
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        /**
         * @throws Exception
         */
        @Test(expected = EmptyArgumentException.class)
        public void testForName_EmptyName() throws Exception {
            ClassUtil.forName("");
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = EmptyArgumentException.class)
        public void testGetField_EmptyName() throws Exception {
            ClassUtil.getField(getClass(), "");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNull;
    
    import java.net.URLConnection;
    
    import org.codelibs.core.exception.EmptyArgumentException;
    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.core.lang.ClassUtil;
    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    
    /**
     * @author shot
     */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/ClassUtil.java

    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.util.Map;
    
    import org.codelibs.core.exception.ClassNotFoundRuntimeException;
    import org.codelibs.core.exception.EmptyArgumentException;
    import org.codelibs.core.exception.IllegalAccessRuntimeException;
    import org.codelibs.core.exception.InstantiationRuntimeException;
    import org.codelibs.core.exception.NoSuchConstructorRuntimeException;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top