org.eclipse.cdt.managedbuilder.macros
Class BuildMacroException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.core.runtime.CoreException
              extended by org.eclipse.cdt.core.cdtvariables.CdtVariableException
                  extended by org.eclipse.cdt.managedbuilder.macros.BuildMacroException
All Implemented Interfaces:
java.io.Serializable

public class BuildMacroException
extends CdtVariableException

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:
Serialized Form

Constructor Summary
BuildMacroException(CdtVariableException e)
          Creates an exception containing a single IBuildMacroStatus status with the IStatus.ERROR severity and with the default message
BuildMacroException(org.eclipse.core.runtime.IStatus status)
          Creates a new exception with the given status object.
 
Method Summary
 IBuildMacroStatus[] getMacroStatuses()
          Returns an array of the IBuildMacroStatus statuses this exception holds
 
Methods inherited from class org.eclipse.cdt.core.cdtvariables.CdtVariableException
getVariableStatuses
 
Methods inherited from class org.eclipse.core.runtime.CoreException
getStatus, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildMacroException

public BuildMacroException(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

BuildMacroException

public BuildMacroException(CdtVariableException e)
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 statusses
exception - a low-level exception, or null if not applicable
macroName - the name of the build macro whose resolution caused this status creation or null if none
expression - the string whose resolutinon caused caused this status creation or null if none
referencedName - the macro name referenced in the resolution string that caused this this status creation or null if none
contextType - the context type used in the operation
contextData - the context data used in the operation
Method Detail

getMacroStatuses

public IBuildMacroStatus[] getMacroStatuses()
Returns an array of the IBuildMacroStatus statuses this exception holds

Returns:
IBuildMacroStatus[]