#include "platform/exception.h" namespace location { namespace nearby { template ExceptionOr::ExceptionOr(T result) : result_(result), exception_(Exception::NONE) {} template ExceptionOr::ExceptionOr(Exception::Value exception) : result_(), exception_(exception) {} template bool ExceptionOr::ok() const { return Exception::NONE == exception_; } template T ExceptionOr::result() const { return result_; } template Exception::Value ExceptionOr::exception() const { return exception_; } } // namespace nearby } // namespace location