public class CdtVariableException
extends org.eclipse.core.runtime.CoreException
Constructor and Description |
---|
CdtVariableException(int code,
String macroName,
String expression,
String referencedName)
Creates an exception containing a single IBuildMacroStatus status with the IStatus.ERROR severity and with the default message
|
CdtVariableException(int code,
String message,
Throwable exception,
String macroName,
String expression,
String referencedName)
Creates an exception containing a single IBuildMacroStatus status with the IStatus.ERROR severity
|
CdtVariableException(org.eclipse.core.runtime.IStatus status)
Creates a new exception with the given status object.
|
Modifier and Type | Method and Description |
---|---|
ICdtVariableStatus[] |
getVariableStatuses()
Returns an array of the IBuildMacroStatus statuses this exception holds
|
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public CdtVariableException(org.eclipse.core.runtime.IStatus status)
status
- the status object to be associated with this exception.
Typically this is either the IBuildMacroStatus or the MultiStatus that holds
the list of the IBuildMacroStatus statusespublic CdtVariableException(int code, String message, Throwable exception, String macroName, String expression, String referencedName)
code
- one of the IBuildMacroStatus.TYPE_xxx statussesmessage
- message, can be null. In this case the default message will
be generated base upon the other status infoexception
- a low-level exception, or null
if not
applicablemacroName
- the name of the build macro whose resolution caused this status creation or null if noneexpression
- the string whose resolutinon caused caused this status creation or null if nonereferencedName
- the macro name referenced in the resolution string that caused this this status creation or null if nonepublic CdtVariableException(int code, String macroName, String expression, String referencedName)
code
- one of the IBuildMacroStatus.TYPE_xxx statussesmacroName
- the name of the build macro whose resolution caused this status creation or null if noneexpression
- the string whose resolutinon caused caused this status creation or null if nonereferencedName
- the macro name referenced in the resolution string that caused this this status creation or null if nonepublic ICdtVariableStatus[] getVariableStatuses()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.