Class ErrorConfig

java.lang.Object
es.urjc.etsii.grafo.config.ErrorConfig

@Configuration @ConfigurationProperties(prefix="errors") public class ErrorConfig extends Object
This class is used to configure the behaviour on error using the properties specified in the application.yml
  • Constructor Details

    • ErrorConfig

      public ErrorConfig()
  • Method Details

    • isErrorsToFile

      public boolean isErrorsToFile()
      Export errors to file?
      Returns:
      True to export, false to skip
    • setErrorsToFile

      public void setErrorsToFile(boolean errorsToFile)
      Export errors to file?
      Parameters:
      errorsToFile - True to export, false to skip
    • getFolder

      public String getFolder()
      Where should serialized errors be stored?
      Returns:
      path as string
    • setFolder

      public void setFolder(String folder)
      Where should serialized errors be stored?
      Parameters:
      folder - path as string