VOL-1103 Transfer BCM error code to GRPC error codes

Change-Id: I7636bfdfbec40fc244407d3cd57bbc6e7f5cefd8
diff --git a/src/error_format.h b/src/error_format.h
new file mode 100644
index 0000000..5956fba
--- /dev/null
+++ b/src/error_format.h
@@ -0,0 +1,17 @@
+#ifndef OPENOLT_ERROR_FORMAT_H_
+#define OPENOLT_ERROR_FORMAT_H_
+
+#include <string>
+#include <grpc++/grpc++.h>
+
+extern "C"
+{
+#include <bcmos_system.h>
+#include <bal_api.h>
+#include <bal_api_end.h>
+}
+
+grpc::Status bcm_to_grpc_err(bcmos_errno bcm_err, std::string message);
+
+
+#endif