View Javadoc
1   package org.oxerr.okcoin.rest.service.web;
2   
3   import org.oxerr.okcoin.rest.OKCoinException;
4   import org.oxerr.okcoin.rest.dto.Result;
5   
6   public class OKCoinClientException extends OKCoinException {
7   
8   	private static final long serialVersionUID = 2013122001L;
9   
10  	public OKCoinClientException() {
11  	}
12  
13  	public OKCoinClientException(String message) {
14  		super(message);
15  	}
16  
17  	public OKCoinClientException(String message, Throwable cause) {
18  		super(message, cause);
19  	}
20  
21  	public OKCoinClientException(Result result) {
22  		super(String.format("ErrorNum: %d, ResultCode: %d.",
23  			result.getErrorNum(), result.getResultCode()));
24  	}
25  
26  }