def listAtoms()

in app/db/ExplainerDB.scala [15:26]


  def listAtoms(datastore: DynamoDataStore): Either[AtomAPIError, List[Atom]] = {
    logger.info(s"Attempting to read all explainers from ${datastore.getClass.getName}")
    try {
      val result = datastore.listAtoms
      logger.info(s"Successfully read alls explainers from ${datastore.getClass.getName}")
      result.fold({
        case x: Throwable => Left(ExplainerDynamoDatastoreError(x.getMessage))
      }, Right(_))
    } catch {
      case e: Exception => processException(e)
    }
  }