Class EasyError

All Implemented Interfaces:
Artifactizable, DeleteMarkerable, LocalizableOM, ValidateError, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class EasyError extends BaseEasyError implements Artifactizable, DeleteMarkerable, ValidateError
EasyError 는 사용자의 Error 를 정의하고, 그 것에 대한 Message 및 해결방안을 제시한다. EasyError 의 검색은 먼저 해당 Module 을 검색하고 없으면 Web Module 을 검색한다. Error > Module > WebModule (module, ItemType, attribute, name )
Author:
YounghoCho
  • Constructor Details

    • EasyError

      public EasyError()
      새로운 EasyError 인스턴스를 생성한다.
  • Method Details

    • save

      public void save() throws Exception
      Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseEasyError
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • getResult

      public String getResult()
      DOCUMENT ME!
      Specified by:
      getResult in interface ValidateError
      Returns:
      DOCUMENT ME!
    • setResult

      public void setResult(String result)
      DOCUMENT ME!
      Specified by:
      setResult in interface ValidateError
      Parameters:
      result - DOCUMENT ME!
    • setMode

      public void setMode(int mode)
      DOCUMENT ME!
      Specified by:
      setMode in interface ValidateError
      Parameters:
      mode - DOCUMENT ME!
    • getMode

      public int getMode()
      DOCUMENT ME!
      Specified by:
      getMode in interface ValidateError
      Returns:
      DOCUMENT ME!
    • setWarn

      public void setWarn(boolean warn)
      DOCUMENT ME!
      Specified by:
      setWarn in interface ValidateError
      Parameters:
      warn - DOCUMENT ME!
    • getWarn

      public boolean getWarn()
      DOCUMENT ME!
      Specified by:
      getWarn in interface ValidateError
      Returns:
      DOCUMENT ME!
    • getException

      public Throwable getException()
      Description copied from interface: ValidateError
      처리 과정중 발생한 Exception 을 반환한다. (Exception 이 발생하지 않은 경우 null 을 반환한다.)
      Specified by:
      getException in interface ValidateError
      Returns:
    • setException

      public void setException(Throwable exception)
      Description copied from interface: ValidateError
      처리 과정중 발생한 Exception 을 설정한다. (Exception 이 발생하지 않은 경우 null 을 설정한다.)
      Specified by:
      setException in interface ValidateError
      Parameters:
      exception -
    • delete

      public boolean delete(boolean overrideLock) throws Exception
      DOCUMENT ME!
      Specified by:
      delete in interface DeleteMarkerable
      Parameters:
      overrideLock - lock 이 걸려 있어도 삭제할지 여부
      Returns:
      true success false not success
      Throws:
      Exception - DOCUMENT ME!
    • getArtifactType

      public ItemType getArtifactType() throws TorqueException
      itemable Object 의 itemType
      Specified by:
      getArtifactType in interface Artifactizable
      Returns:
      itemType
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getArtifact

      public Item getArtifact() throws TorqueException
      Object 의 속성을 서술하는 아이템을 구한다.
      Specified by:
      getArtifact in interface Artifactizable
      Returns:
      item
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getModule

      public Module getModule() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getLocalized

      public Localized[] getLocalized(Locale locale) throws TorqueException
      locale 에 해당하는 localized 정보를 구한다.
      Specified by:
      getLocalized in interface LocalizableOM
      Parameters:
      locale - 대상 locale
      Returns:
      localized[]
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우