Skip to content

codechimp/preconditioner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Preconditioner

Preconditioner is inspired by Google's Guava Precondions class. It allows to use a Preconditions like API with any kind of Exception:

Preconditioner precondition = new ExceptionReflectionPreconditioner(MyException.class);
precondition.check("TEST".equals(arg), "%s is not equals %s", arg, "TEST");

instead of

if(! "TEST".equals(arg))
{
	throw new MyException(String.format("%s is not equals %s", arg, "TEST"));
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages