ua.gradsoft.javachecker
Class EntityNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ua.gradsoft.javachecker.EntityNotFoundException
All Implemented Interfaces:
java.io.Serializable, SourceCodeLocation

public class EntityNotFoundException
extends java.lang.Exception
implements SourceCodeLocation

Throwed when we can't find some entity in model-s findXXX method. (for example - method with some name)

Author:
Ruslan Shevchenko
See Also:
Serialized Form

Constructor Summary
EntityNotFoundException(java.lang.String entityType, java.lang.String entityName, java.lang.String msg)
           
EntityNotFoundException(java.lang.String entityType, java.lang.String entityName, java.lang.String msg, FileAndLine fileAndLine)
           
EntityNotFoundException(java.lang.String entityType, java.lang.String entityName, java.lang.String msg, FileAndLine fileAndLine, java.lang.Exception ex)
           
 
Method Summary
 java.lang.String getEntityName()
          return name of entity which was not found.
 FileAndLine getFileAndLine()
           
 void setFileAndLine(FileAndLine fileAndLine)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityNotFoundException

public EntityNotFoundException(java.lang.String entityType,
                               java.lang.String entityName,
                               java.lang.String msg)

EntityNotFoundException

public EntityNotFoundException(java.lang.String entityType,
                               java.lang.String entityName,
                               java.lang.String msg,
                               FileAndLine fileAndLine)

EntityNotFoundException

public EntityNotFoundException(java.lang.String entityType,
                               java.lang.String entityName,
                               java.lang.String msg,
                               FileAndLine fileAndLine,
                               java.lang.Exception ex)
Method Detail

getEntityName

public java.lang.String getEntityName()
return name of entity which was not found.


getFileAndLine

public FileAndLine getFileAndLine()
Specified by:
getFileAndLine in interface SourceCodeLocation

setFileAndLine

public void setFileAndLine(FileAndLine fileAndLine)
Specified by:
setFileAndLine in interface SourceCodeLocation