NebulaGraph Java Client  release-3.8
IOErrorException.java
1 /* Copyright (c) 2019 vesoft inc. All rights reserved.
2  *
3  * This source code is licensed under Apache 2.0 License.
4  */
5 
6 package com.vesoft.nebula.client.graph.exception;
7 
11 public class IOErrorException extends java.lang.Exception {
12  public static final int E_UNKNOWN = 0;
13 
14  public static final int E_ALL_BROKEN = 1;
15 
16  public static final int E_CONNECT_BROKEN = 2;
17 
18  public static final int E_TIME_OUT = 4;
19 
20  public static final int E_NO_OPEN = 5;
21 
22  private int type = E_UNKNOWN;
23 
24  public IOErrorException(int errorType, String message) {
25  super(message);
26  this.type = errorType;
27  }
28 
29  public int getType() {
30  return type;
31  }
32 }
33