Exceptions

Add raise error for nil params.