Add exceptions when $lower value is greater than $upper
Add missing exception case

Also fix exception class names (add \)