OmniSciDB  c07336695a
ArrowUtil.h File Reference
#include "arrow/status.h"
#include "arrow/util/macros.h"
#include "Shared/likely.h"
+ Include dependency graph for ArrowUtil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARROW_THROW_NOT_OK(s)
 

Functions

void arrow_status_throw (const ::arrow::Status &s)
 
void arrow_status_thrift_throw (const ::arrow::Status &s)
 

Macro Definition Documentation

◆ ARROW_THROW_NOT_OK

Function Documentation

◆ arrow_status_thrift_throw()

void arrow_status_thrift_throw ( const ::arrow::Status &  s)

◆ arrow_status_throw()

void arrow_status_throw ( const ::arrow::Status &  s)

Definition at line 24 of file ArrowUtil.cpp.

24  {
25  std::string message = s.ToString();
26  switch (s.code()) {
27  case ::arrow::StatusCode::OutOfMemory:
28  throw OutOfMemory(message);
29  default:
30  throw std::runtime_error(message);
31  }
32 }