change exception type for sgfilter ctor