Skip to content

Commit

Permalink
started renaming packages for #39 to match the domain name
Browse files Browse the repository at this point in the history
  • Loading branch information
bbottema committed Jun 14, 2016
1 parent 8396c98 commit 67cad60
Show file tree
Hide file tree
Showing 38 changed files with 1,057 additions and 1,052 deletions.
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
package org.codemonkey.simplejavamail;

/**
* This exception is used to communicate errors during the sending of email.
*
* @author Benny Bottema
*/
@SuppressWarnings("serial")
public class MailException extends RuntimeException {

static final String GENERIC_ERROR = "Third party error";
static final String MISSING_HOST = "Can't send an email without host";
static final String MISSING_USERNAME = "Can't have a password without username";
static final String INVALID_ENCODING = "Encoding not accepted";
static final String INVALID_RECIPIENT = "Invalid TO address: %s";
static final String INVALID_REPLYTO = "Invalid REPLY TO address: %s";
static final String INVALID_SENDER = "Invalid FROM address: %s";
static final String MISSING_SENDER = "Email is not valid: missing sender";
static final String MISSING_RECIPIENT = "Email is not valid: missing recipients";
static final String MISSING_SUBJECT = "Email is not valid: missing subject";
static final String MISSING_CONTENT = "Email is not valid: missing content body";
static final String INVALID_DOMAINKEY = "Error signing MimeMessage with DKIM: %s";
static final String INVALID_PROXY_SLL_COMBINATION = "Proxy is not supported for SSL connections (this is a limitation by the underlying JavaMail framework)";
static final String MISSING_PROXY_USERNAME = "Missing proxy username";
static final String MISSING_PROXY_PASSWORD = "Missing proxy password";

MailException(final String message) {
super(message);
}

public MailException(final String message, final Exception cause) {
super(message, cause);
}
package org.simplejavamail;

/**
* This exception is used to communicate errors during the sending of email.
*
* @author Benny Bottema
*/
@SuppressWarnings("serial")
public class MailException extends RuntimeException {

static final String GENERIC_ERROR = "Third party error";
static final String MISSING_HOST = "Can't send an email without host";
static final String MISSING_USERNAME = "Can't have a password without username";
static final String INVALID_ENCODING = "Encoding not accepted";
static final String INVALID_RECIPIENT = "Invalid TO address: %s";
static final String INVALID_REPLYTO = "Invalid REPLY TO address: %s";
static final String INVALID_SENDER = "Invalid FROM address: %s";
static final String MISSING_SENDER = "Email is not valid: missing sender";
static final String MISSING_RECIPIENT = "Email is not valid: missing recipients";
static final String MISSING_SUBJECT = "Email is not valid: missing subject";
static final String MISSING_CONTENT = "Email is not valid: missing content body";
static final String INVALID_DOMAINKEY = "Error signing MimeMessage with DKIM: %s";
static final String INVALID_PROXY_SLL_COMBINATION = "Proxy is not supported for SSL connections (this is a limitation by the underlying JavaMail framework)";
static final String MISSING_PROXY_USERNAME = "Missing proxy username";
static final String MISSING_PROXY_PASSWORD = "Missing proxy password";

MailException(final String message) {
super(message);
}

public MailException(final String message, final Exception cause) {
super(message, cause);
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package org.codemonkey.simplejavamail;
package org.simplejavamail;

import org.simplejavamail.internal.Util;

import static java.lang.String.format;
import static org.codemonkey.simplejavamail.internal.Util.checkNotNull;

/**
* The proxy configuration that indicates whether the connections should be routed through a proxy.
Expand Down Expand Up @@ -62,8 +63,8 @@ public ProxyConfig(String remoteProxyHost, int remoteProxyPort) {
*/
@SuppressWarnings({ "WeakerAccess", "SameParameterValue" })
public ProxyConfig(String remoteProxyHost, int remoteProxyPort, String username, String password) {
this.remoteProxyHost = checkNotNull(remoteProxyHost, "remoteProxyHost missing");
this.remoteProxyPort = checkNotNull(remoteProxyPort, "remoteProxyPort missing");
this.remoteProxyHost = Util.checkNotNull(remoteProxyHost, "remoteProxyHost missing");
this.remoteProxyPort = Util.checkNotNull(remoteProxyPort, "remoteProxyPort missing");
this.username = username;
this.password = password;
if (username != null && password == null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.codemonkey.simplejavamail;
package org.simplejavamail;

public class ServerConfig {
private final String host;
Expand Down
Loading

0 comments on commit 67cad60

Please sign in to comment.