View Javadoc
1   package org.oxerr.okcoin.rest.dto;
2   
3   import org.oxerr.okcoin.rest.OKCoinException;
4   
5   abstract class ErrorResult extends BaseObject {
6   
7   	private static final long serialVersionUID = 20140614L;
8   
9   	public ErrorResult(final Boolean result) {
10  		if (result != null && !result) {
11  			throw new OKCoinException();
12  		}
13  	}
14  
15  	public ErrorResult(final Boolean result, final int errorCode) {
16  		if (result != null && !result) {
17  			throw new OKCoinException(errorCode);
18  		}
19  	}
20  
21  }