src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/GraalError.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
164 * |
164 * |
165 * @param cause the original exception that contains additional information on this error |
165 * @param cause the original exception that contains additional information on this error |
166 */ |
166 */ |
167 public GraalError(Throwable cause) { |
167 public GraalError(Throwable cause) { |
168 super(cause); |
168 super(cause); |
|
169 } |
|
170 |
|
171 /** |
|
172 * This constructor creates a {@link GraalError} for a given causing Throwable instance with |
|
173 * detailed error message. |
|
174 */ |
|
175 public GraalError(Throwable cause, String msg, Object... args) { |
|
176 super(format(msg, args), cause); |
169 } |
177 } |
170 |
178 |
171 /** |
179 /** |
172 * This constructor creates a {@link GraalError} and adds all the |
180 * This constructor creates a {@link GraalError} and adds all the |
173 * {@linkplain #addContext(String) context} of another {@link GraalError}. |
181 * {@linkplain #addContext(String) context} of another {@link GraalError}. |