org.apache.tuscany.sca.contribution.service
Class ContributionReadException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.tuscany.sca.contribution.service.AbstractContributionException
              extended by org.apache.tuscany.sca.contribution.service.ContributionException
                  extended by org.apache.tuscany.sca.contribution.service.ContributionReadException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidConfigurationException, UnrecognizedElementException

public class ContributionReadException
extends ContributionException

Denotes an exception while reading artifacts inside an SCA contribution.

Version:
$Rev: 526268 $ $Date: 2007-04-06 13:13:26 -0700 (Fri, 06 Apr 2007) $
See Also:
Serialized Form

Field Summary
static int UNDEFINED
           
 
Constructor Summary
ContributionReadException(java.lang.String message)
           
ContributionReadException(java.lang.String message, java.lang.Throwable cause)
           
ContributionReadException(java.lang.Throwable cause)
           
 
Method Summary
 int getColumn()
          Returns the column inside the resource that was being read.
 int getLine()
          Returns the line inside the resource that was being read.
 java.lang.String getResourceURI()
          Returns the location of the resource that was being read.
 void setColumn(int column)
          Sets the column inside the resource that was being read.
 void setLine(int line)
          Sets the line inside the resource that was being read.
 void setResourceURI(java.lang.String resourceURI)
          Sets the location of the resource that was being read.
 
Methods inherited from class org.apache.tuscany.sca.contribution.service.AbstractContributionException
appendBaseMessage, getIdentifier
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values
Constructor Detail

ContributionReadException

public ContributionReadException(java.lang.String message)

ContributionReadException

public ContributionReadException(java.lang.String message,
                                 java.lang.Throwable cause)

ContributionReadException

public ContributionReadException(java.lang.Throwable cause)
Method Detail

getResourceURI

public java.lang.String getResourceURI()
Returns the location of the resource that was being read.

Returns:
the location of the resource that was being read

setResourceURI

public void setResourceURI(java.lang.String resourceURI)
Sets the location of the resource that was being read.

Parameters:
resourceURI - the location of the resource that was being read

getLine

public int getLine()
Returns the line inside the resource that was being read.

Returns:
the line inside the resource that was being read

setLine

public void setLine(int line)
Sets the line inside the resource that was being read.

Parameters:
line - the line inside the resource that was being read

getColumn

public int getColumn()
Returns the column inside the resource that was being read.

Returns:
the column inside the resource that was being read

setColumn

public void setColumn(int column)
Sets the column inside the resource that was being read.

Parameters:
column - the column inside the resource that was being read