nsDOMException::nsDOMException(nsresult aResult, const char* aName, const char* aMessage, const char* aLocation) : mResult(aResult), mName(nsnull), mMessage(nsnull), mLocation(nsnull)
nsDOMException::nsDOMException(nsresult aNSResult, nsIException* aInner) : mResult(aNSResult), mInner(aInner)
nsDOMException::nsDOMException(nsresult aResult,                               const char* aName,                               const char* aMessage,                               const char* aLocation)  : mResult(aResult),    mName(nsnull),    mMessage(nsnull),    mLocation(nsnull){  NS_INIT_ISUPPORTS();  if (aName) {    mName = nsCRT::strdup(aName);  }    if (aMessage) {    mMessage = nsCRT::strdup(aMessage);  }  if (aLocation) {    mLocation = nsCRT::strdup(aLocation);  }}