summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-02-03 15:29:36 -0800
committerStephen Hines <srhines@google.com>2012-02-03 15:29:36 -0800
commitbe74bdd2349095f203ae0fddcc4816bfbd56bc5d (patch)
tree8869ca4c401cfa11c074c3f5a86823a3e5ee8f41 /graphics/java/android/renderscript/RenderScript.java
parentcc2daede56257f0f1f490a1aebf5b9b898d9816a (diff)
We should not throw for non-fatal errors.
BUG=5955072 Change-Id: I731242805957a057aaff1ba96a58c69d6e474a59
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r--graphics/java/android/renderscript/RenderScript.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java
index 03ad5aee4e0c..bfe412c72185 100644
--- a/graphics/java/android/renderscript/RenderScript.java
+++ b/graphics/java/android/renderscript/RenderScript.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008 The Android Open Source Project
+ * Copyright (C) 2008-2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -837,7 +837,8 @@ public class RenderScript {
mRS.mErrorCallback.mErrorNum = subID;
mRS.mErrorCallback.run();
} else {
- throw new RSRuntimeException("Received error num " + subID + ", details: " + e);
+ // Do not throw here. In these cases, we do not have
+ // a fatal error.
}
continue;
}