title: Java Beginner: What to use with wrong length vector passed as argument
body: <p>If I'm having a function that does element wise addition.  How should I deal with unmatched vector lengths: use Assertions, <code>IllegalArgumentException</code>, create my own Checked Exception class or what? </p>
  
  <p>Note the function is in a library which is going to be used by other programmers, but it's very important that if vectors doesn't match developer be notified.</p>