Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Error codes for farmer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloyan-raev committed Feb 9, 2018
1 parent 0e4a8a6 commit 6b4f553
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apply plugin: 'maven'
apply plugin: 'maven-publish'

group = 'io.storj'
version = '0.6.1'
version = '0.6.2'

description = """Java bindings for libstorj"""

Expand Down
27 changes: 27 additions & 0 deletions src/main/java/io/storj/libstorj/Storj.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,33 @@ public class Storj {
*/
public static final int STORJ_BRIDGE_OFFER_ERROR = 1014;

/**
* Error code for general error with requesting a farmer during a download or
* upload operation.
*/
public static final int STORJ_FARMER_REQUEST_ERROR = 2000;

/**
* Error code if a request to a farmer timed out during a download or upload
* operation.
*/
public static final int STORJ_FARMER_TIMEOUT_ERROR = 2001;

/**
* Error code if a farmer was requested with invalid credentials.
*/
public static final int STORJ_FARMER_AUTH_ERROR = 2002;

/**
* Error code if a farmer is exhausted.
*/
public static final int STORJ_FARMER_EXHAUSTED_ERROR = 2003;

/**
* Error code for farmer integrity problems.
*/
public static final int STORJ_FARMER_INTEGRITY_ERROR = 2004;

/**
* Error code if info about the file being uploaded could not be retrieved from
* the local file system.
Expand Down

0 comments on commit 6b4f553

Please sign in to comment.