Skip to content

Commit

Permalink
MailHander should catch ServiceConfigurationError #123
Browse files Browse the repository at this point in the history
Signed-off-by: jmehrens <[email protected]>
  • Loading branch information
jmehrens committed Jan 30, 2024
1 parent 47d8a5e commit ed8f3db
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2146,6 +2146,13 @@ private void reportError(Message msg, Exception ex, int code) {
}
}

/**
* Report a ServiceConfigurationError to the error manager.
*
* @param t the service configuration error.
* @param code the error manager reason code.
* @since Angus Mail 2.0.3
*/
private void reportConfigurationError(Throwable t, int code) {
final Integer idx = MUTEX.get();
if (idx == null || idx > MUTEX_SERVICE) {
Expand Down Expand Up @@ -2288,9 +2295,8 @@ private String contentWithEncoding(String type, String encoding) {
/**
* Sets the capacity for this handler.
*
* @param newCapacity the max number of records.
* @throws SecurityException if a security manager exists and the
* caller does not have <code>LoggingPermission("control")</code>.
* @param newCapacity the max number of records. Default capacity is used if
* the value is negative.
* @throws IllegalStateException if called from inside a push.
*/
private synchronized void setCapacity0(int newCapacity) {
Expand Down Expand Up @@ -4209,7 +4215,7 @@ private String descriptionFrom(Formatter f, Filter filter, Formatter name) {
* Gets a class name represents the behavior of the formatter.
* The class name may not be assignable to a Formatter.
*
* @param f the formatter.
* @param f the formatter or null.
* @return a class name that represents the given formatter.
* @since JavaMail 1.4.5
*/
Expand Down

0 comments on commit ed8f3db

Please sign in to comment.