markdown这么好用的东西我才知道。。。多么不折腾的我。。。
2024-10-19 06:18:56
markdown
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
不用cnblog了 以后换到 我得博客
最新文章
- 基于WCF MSMQ 的企业应用解决方案
- java分享第十天(http协议简介)
- 扩展Redis的Lua调用方式
- android ImageView 中的ScaleType
- poj 1236 Network of Schools(连通图)
- 跟着百度学PHP[4]OOP面对对象编程-6-封装性private
- Git Step by Step
- 【手把手教你Elmah】如何在MVC.NET项目中在线查看【错误日志】
- Android(java)学习笔记134:Handler用法总结 和 秒表案例
- JavaScript Garden2
- JS全部API笔记
- Linkedin工程师是如何优化他们的Java代码的(转)
- Provisioning profile 浅析
- 再起航,我的学习笔记之JavaScript设计模式23(中介者模式)
- [AtCoder arc090E]Avoiding Collision
- Linux下简易线程池
- Centos7 修改硬件时间和系统时间
- 使用fiddler模拟重复请求接口
- [日常工作]vCenter下虚拟机设置与宿主机时间同步的方法
- OpenCv练习