org.kefirsf.bb.util
Class Exceptions

java.lang.Object
  extended by org.kefirsf.bb.util.Exceptions

public final class Exceptions
extends Object

Exceptions utils.

Author:
kefir

Method Summary
static void blankArgument(String name, CharSequence value)
           
static
<E> void
emptyArgument(String name, Collection<E> value)
           
static void negativeArgument(String name, int offset)
           
static void nullArgument(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nullArgument

public static void nullArgument(String name,
                                Object value)
                         throws IllegalArgumentException
Throws:
IllegalArgumentException

emptyArgument

public static <E> void emptyArgument(String name,
                                     Collection<E> value)
                          throws IllegalArgumentException
Throws:
IllegalArgumentException

blankArgument

public static void blankArgument(String name,
                                 CharSequence value)
                          throws IllegalArgumentException
Throws:
IllegalArgumentException

negativeArgument

public static void negativeArgument(String name,
                                    int offset)


Copyright © 2013. All Rights Reserved.