package com.android.volley; /** * Exception style class encapsulating Volley errors */ @SuppressWarnings("serial") public class VolleyError extends Exception { public final NetworkResponse networkResponse; private long networkTimeMs; public VolleyError() { networkResponse = null; } public VolleyError(NetworkResponse response) { networkResponse = response; } public VolleyError(String exceptionMessage) { super(exceptionMessage); networkResponse = null; } public VolleyError(String exceptionMessage, Throwable reason) { super(exceptionMessage, reason); networkResponse = null; } public VolleyError(Throwable cause) { super(cause); networkResponse = null; } /* package */ void setNetworkTimeMs(long networkTimeMs) { this.networkTimeMs = networkTimeMs; } public long getNetworkTimeMs() { return networkTimeMs; } }
package com.android.volley; /** * Exception style class encapsulating Volley errors */ @SuppressWarnings("serial") public class VolleyError extends Exception { public final NetworkResponse networkResponse; private long networkTimeMs; public VolleyError() { networkResponse = null; } public VolleyError(NetworkResponse response) { networkResponse = response; } public VolleyError(String exceptionMessage) { super(exceptionMessage); networkResponse = null; } public VolleyError(String exceptionMessage, Throwable reason) { super(exceptionMessage, reason); networkResponse = null; } public VolleyError(Throwable cause) { super(cause); networkResponse = null; } /* package */ void setNetworkTimeMs(long networkTimeMs) { this.networkTimeMs = networkTimeMs; } public long getNetworkTimeMs() { return networkTimeMs; } }
package com.android.volley; /** * Exception style class encapsulating Volley errors */ @SuppressWarnings("serial") public class VolleyError extends Exception { public final NetworkResponse networkResponse; private long networkTimeMs; public VolleyError() { networkResponse = null; } public VolleyError(NetworkResponse response) { networkResponse = response; } public VolleyError(String exceptionMessage) { super(exceptionMessage); networkResponse = null; } public VolleyError(String exceptionMessage, Throwable reason) { super(exceptionMessage, reason); networkResponse = null; } public VolleyError(Throwable cause) { super(cause); networkResponse = null; } /* package */ void setNetworkTimeMs(long networkTimeMs) { this.networkTimeMs = networkTimeMs; } public long getNetworkTimeMs() { return networkTimeMs; } }
end
***this
不用cnblog了 之後換到 我得博客spa