static void SetPendingCustomException(string message, int type) { if (type == 0) SWIGPendingException.Set(new SBMLConstructorException(message)); else SWIGPendingException.Set(new XMLConstructorException(message)); }