1 /* Copyright 2016-present Facebook, Inc.
2  * Licensed under the Apache License, Version 2.0 */
3 
4 #include "WatchmanConnection.h"
5 
6 namespace watchman {
7 
8 using namespace folly;
9 
10 static const dynamic kError("error");
11 
WatchmanResponseError(const folly::dynamic & response)12 WatchmanResponseError::WatchmanResponseError(const folly::dynamic& response)
13     : WatchmanError(response[kError].c_str()), response_(response) {}
14 
getResponse() const15 const folly::dynamic& WatchmanResponseError::getResponse() const {
16   return response_;
17 }
18 } // namespace watchman
19