Constructs a new EmailException with specified
nested Throwable root cause.
Parameters: rootCause - the exception or error that caused this exceptionto be thrown.
Constructs a new EmailException with specified
detail message and nested Throwable root cause.
Parameters: msg - the error message. Parameters: rootCause - the exception or error that caused this exceptionto be thrown.