com.android.ide.common.res2
Class MergingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.android.ide.common.res2.MergingException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DuplicateDataException, MergeConsumer.ConsumerException

public class MergingException
extends java.lang.Exception

Exception for errors during merging

See Also:
Serialized Form

Constructor Summary
MergingException(java.lang.String message)
           
MergingException(java.lang.String message, java.lang.Throwable cause)
           
MergingException(java.lang.Throwable cause)
           
 
Method Summary
 int getColumn()
           
 java.io.File getFile()
           
 int getLine()
           
 java.lang.String getMessage()
          Computes the error message to display for this error
 MergingException setCause(java.lang.Throwable cause)
           
 MergingException setColumn(int column)
           
 MergingException setFile(java.io.File file)
           
 MergingException setLine(int line)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MergingException

public MergingException(@NonNull
                        java.lang.String message,
                        @Nullable
                        java.lang.Throwable cause)

MergingException

public MergingException(@NonNull
                        java.lang.String message)

MergingException

public MergingException(@NonNull
                        java.lang.Throwable cause)
Method Detail

setFile

public MergingException setFile(@NonNull
                                java.io.File file)

setCause

public MergingException setCause(@NonNull
                                 java.lang.Throwable cause)

setLine

public MergingException setLine(int line)

setColumn

public MergingException setColumn(int column)

getMessage

public java.lang.String getMessage()
Computes the error message to display for this error

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

getFile

@Nullable
public java.io.File getFile()
Returns:
the source file where the error occurred, if known

getLine

public int getLine()
Returns:
the 0-based line number, if known, otherwise -1

getColumn

public int getColumn()
Returns:
the 0-based column number, if known, otherwise -1