|
1 /* |
|
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This interface is meant for used when starting the JVM. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef RUNTIMEEXCEPTION_H |
|
20 #define RUNTIMEEXCEPTION_H |
|
21 |
|
22 #include "exceptionbase.h" |
|
23 #include "javaosheaders.h" |
|
24 |
|
25 namespace java // codescanner::namespace |
|
26 { |
|
27 |
|
28 namespace runtime // codescanner::namespace |
|
29 { |
|
30 |
|
31 class OS_IMPORT RuntimeException: public java::util::ExceptionBase |
|
32 { |
|
33 |
|
34 public: |
|
35 OS_IMPORT RuntimeException(const std::string& message, const std::string& file, |
|
36 const std::string& method, int line) throw(); |
|
37 OS_IMPORT virtual ~RuntimeException() throw(); |
|
38 |
|
39 /** |
|
40 * Convert exception to string. |
|
41 * |
|
42 * @return exception as string. |
|
43 */ |
|
44 OS_IMPORT std::string toString() const throw(); |
|
45 |
|
46 RuntimeException(const RuntimeException& x) : ExceptionBase(x) {} |
|
47 |
|
48 }; |
|
49 |
|
50 } //end namespace runtime |
|
51 } //end namespace java |
|
52 #endif // RUNTIMEEXCEPTION_H |
|
53 |