[Android WebView] Fix webview perf bot switchover to use org.chromium.webview_shell...
[chromium-blink-merge.git] / content / common / android / gin_java_bridge_errors.cc
blobb2458cd0354f50a93e4310414cde59621005c661
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/common/android/gin_java_bridge_errors.h"
7 #include "base/logging.h"
9 namespace content {
11 const char* GinJavaBridgeErrorToString(GinJavaBridgeError error) {
12 switch (error) {
13 case kGinJavaBridgeNoError:
14 return "No error";
15 case kGinJavaBridgeUnknownObjectId:
16 return "Unknown Java object ID";
17 case kGinJavaBridgeObjectIsGone:
18 return "Java object is gone";
19 case kGinJavaBridgeMethodNotFound:
20 return "Method not found";
21 case kGinJavaBridgeAccessToObjectGetClassIsBlocked:
22 return "Access to java.lang.Object.getClass is blocked";
23 case kGinJavaBridgeJavaExceptionRaised:
24 return "Java exception was raised during method invocation";
25 case kGinJavaBridgeNonAssignableTypes:
26 return "The type of the object passed to the method is incompatible "
27 "with the type of method's argument";
28 case kGinJavaBridgeRenderFrameDeleted:
29 return "RenderFrame has been deleted";
31 NOTREACHED();
32 return "Unknown error";
35 } // namespace content