From d5f06300341df0990be3e0b7a26fa49b13c6fc19 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 3 Nov 2010 14:27:11 -0700 Subject: RS Error cleanup. Thow java exception during init if the GL driver fails rather than native crash. Change-Id: Ie96ef5a2ac12e64f9456545d86157c4c95179a8e --- .../android/renderscript/RSDriverException.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 graphics/java/android/renderscript/RSDriverException.java (limited to 'graphics/java/android/renderscript/RSDriverException.java') diff --git a/graphics/java/android/renderscript/RSDriverException.java b/graphics/java/android/renderscript/RSDriverException.java new file mode 100644 index 0000000..61787e6 --- /dev/null +++ b/graphics/java/android/renderscript/RSDriverException.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2010 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.renderscript; + + +/** + * Base class for all exceptions thrown by the Android + * Renderscript + * @hide + */ +public class RSDriverException extends RSRuntimeException { + public RSDriverException(String string) { + super(string); + } +} + + + -- cgit v1.1