Class CdtVariableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.core.runtime.CoreException
org.eclipse.cdt.core.cdtvariables.CdtVariableException
- All Implemented Interfaces:
Serializable
public class CdtVariableException
extends org.eclipse.core.runtime.CoreException
This exception is thrown in the case of some build macros-related operation failure
The exception typically contains one or more IBuildMacroStatus statuses
- Since:
- 3.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCdtVariableException
(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 messageCdtVariableException
(int code, String message, Throwable exception, String macroName, String expression, String referencedName) Creates an exception containing a single IBuildMacroStatus status with the IStatus.ERROR severityCdtVariableException
(org.eclipse.core.runtime.IStatus status) Creates a new exception with the given status object. -
Method Summary
Modifier and TypeMethodDescriptionReturns an array of the IBuildMacroStatus statuses this exception holdsMethods inherited from class org.eclipse.core.runtime.CoreException
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
CdtVariableException
public CdtVariableException(org.eclipse.core.runtime.IStatus status) Creates a new exception with the given status object.- Parameters:
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 statuses
-
CdtVariableException
public 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- Parameters:
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, ornull
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 none
-
CdtVariableException
Creates an exception containing a single IBuildMacroStatus status with the IStatus.ERROR severity and with the default message- Parameters:
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 none
-
-
Method Details
-
getVariableStatuses
Returns an array of the IBuildMacroStatus statuses this exception holds- Returns:
- IBuildMacroStatus[]
-