global Error::Error declaration fixed