mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
New method getDetailMessage()
This commit is contained in:
parent
a17576811c
commit
0e81b98bfd
2 changed files with 20 additions and 0 deletions
|
@ -14,6 +14,8 @@ package org.eclipse.cdt.debug.core.cdi;
|
||||||
*/
|
*/
|
||||||
public class CDIException extends Exception {
|
public class CDIException extends Exception {
|
||||||
|
|
||||||
|
String details = "";
|
||||||
|
|
||||||
public CDIException() {
|
public CDIException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
@ -21,4 +23,17 @@ public class CDIException extends Exception {
|
||||||
public CDIException(String s) {
|
public CDIException(String s) {
|
||||||
super(s);
|
super(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CDIException(String s, String d) {
|
||||||
|
super(s);
|
||||||
|
details = d;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a more details message(if any).
|
||||||
|
*/
|
||||||
|
public String getDetailMessage() {
|
||||||
|
return details;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,9 @@ public interface ICDIErrorInfo extends ICDISessionObject {
|
||||||
* Returns the error message.
|
* Returns the error message.
|
||||||
*/
|
*/
|
||||||
public String getMessage();
|
public String getMessage();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a more verbatim error message(if any).
|
||||||
|
*/
|
||||||
|
public String getDetailMessage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue