Skip to content

Commit

Permalink
ARROW-2550: [C++] Add missing status codes into arrow::Status::CodeAs…
Browse files Browse the repository at this point in the history
…String()

Author: Kouhei Sutou <kou@clear-code.com>

Closes #2010 from kou/cpp-status-code-as-string-update and squashes the following commits:

dd12f56 <Kouhei Sutou>  Add missing status codes into arrow::Status::CodeAsString()
  • Loading branch information
kou authored and xhochy committed May 8, 2018
1 parent 488a8c0 commit 64923d5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cpp/src/arrow/status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,33 @@ std::string Status::CodeAsString() const {
case StatusCode::IOError:
type = "IOError";
break;
case StatusCode::CapacityError:
type = "Capacity error";
break;
case StatusCode::UnknownError:
type = "Unknown error";
break;
case StatusCode::NotImplemented:
type = "NotImplemented";
break;
case StatusCode::SerializationError:
type = "Serialization error";
break;
case StatusCode::PythonError:
type = "Python error";
break;
case StatusCode::PlasmaObjectExists:
type = "Plasma object exists";
break;
case StatusCode::PlasmaObjectNonexistent:
type = "Plasma object is nonexistent";
break;
case StatusCode::PlasmaStoreFull:
type = "Plasma store is full";
break;
case StatusCode::PlasmaObjectAlreadySealed:
type = "Plasma object is already sealed";
break;
default:
type = "Unknown";
break;
Expand Down

0 comments on commit 64923d5

Please sign in to comment.