Use InvalidArgumentException instead of SimpleSAML_Error_Exception when dealing with wrong input parameters.