MCPcopy Create free account
hub / github.com/M66B/FairEmail / byeResponse

Method byeResponse

app/src/main/java/com/sun/mail/iap/Response.java:140–147  ·  view source on GitHub ↗

Return a Response object that looks like a BYE protocol response. Include the details of the exception in the response string. @param ex the exception @return the synthetic Response object

(Exception ex)

Source from the content-addressed store, hash-verified

138 * @return the synthetic Response object
139 */
140 public static Response byeResponse(Exception ex) {
141 String err = "* BYE Jakarta Mail Exception: " + ex.toString();
142 err = err.replace('\r', ' ').replace('\n', ' ');
143 Response r = new Response(err);
144 r.type |= SYNTHETIC;
145 r.ex = ex;
146 return r;
147 }
148
149 /**
150 * Does the server support UTF-8?

Callers 10

authenticateMethod · 0.95
authloginMethod · 0.95
authplainMethod · 0.95
authntlmMethod · 0.95
authoauth2Method · 0.95
startTLSMethod · 0.95
compressMethod · 0.95
idleStartMethod · 0.95
readIdleResponseMethod · 0.95
commandMethod · 0.95

Calls 2

toStringMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected