congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IResourceStore$ResourceStoreException.getLocalizedMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocalizedMessage
method
in
ai.labs.persistence.IResourceStore$ResourceStoreException

Best Java code snippets using ai.labs.persistence.IResourceStore$ResourceStoreException.getLocalizedMessage (Showing top 20 results out of 315)

origin: labsai/EDDI

  @Override
  public Response deleteProperties(String userId) {
    try {
      propertiesStore.deleteProperties(userId);
      return Response.noContent().build();
    } catch (IResourceStore.ResourceStoreException e) {
      log.error(e.getLocalizedMessage(), e);
      throw new InternalServerErrorException(e.getLocalizedMessage());
    }
  }
}
origin: labsai/EDDI

@Override
public Response mergeProperties(String userId, Properties properties) {
  try {
    propertiesStore.mergeProperties(userId, properties);
    return Response.ok().build();
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage());
  }
}
origin: labsai/EDDI

  @Override
  public Response deleteBotTrigger(String intent) {
    try {
      botTriggerStore.deleteBotTrigger(intent);
      botTriggersCache.remove(intent);
      return Response.ok().build();
    } catch (IResourceStore.ResourceStoreException e) {
      log.error(e.getLocalizedMessage(), e);
      throw new InternalServerErrorException(e.getLocalizedMessage());
    }
  }
}
origin: labsai/EDDI

@Override
public List<String> readExpressions(String id, Integer version, String filter, String order, Integer index, Integer limit) {
  try {
    return regularDictionaryStore.readExpressions(id, version, filter, order, index, limit);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage(), e);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NotFoundException(e.getLocalizedMessage(), e);
  }
}
origin: labsai/EDDI

@Override
public DocumentDescriptor readDescriptor(String id, Integer version) {
  try {
    return documentDescriptorStore.readDescriptor(id, version);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage(), e);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NotFoundException(e.getLocalizedMessage(), e);
  }
}
origin: labsai/EDDI

@Override
public Properties readProperties(String userId) {
  try {
    return propertiesStore.readProperties(userId);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage());
  }
}
origin: labsai/EDDI

@Override
public Permissions readPermissions(String resourceId) {
  try {
    return permissionStore.readFilteredPermissions(resourceId);
  } catch (IResourceStore.ResourceStoreException e) {
    throw new InternalServerErrorException(e.getLocalizedMessage(), e);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NoLogWebApplicationException(Response.Status.NOT_FOUND);
  }
}
origin: labsai/EDDI

@Override
public TestCase readTestCase(String id) {
  try {
    return testCaseStore.read(id, 0);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NoLogWebApplicationException(Response.Status.NOT_FOUND);
  }
}
origin: labsai/EDDI

@Override
public List<String> readOutputKeys(String id, Integer version, String filter, String order, Integer limit) {
  try {
    return outputStore.readOutputActions(id, version, filter, order, limit);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage(), e);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NotFoundException(e.getLocalizedMessage(), e);
  }
}
origin: labsai/EDDI

@Override
public OutputConfigurationSet readOutputSet(String id, Integer version, String filter, String order, Integer index, Integer limit) {
  try {
    return outputStore.read(id, version, filter, order, index, limit);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NotFoundException(e.getLocalizedMessage(), e);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage(), e);
  }
}
origin: labsai/EDDI

@Override
public User readUser(String userId) {
  try {
    return userStore.readUser(userId);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException();
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NoLogWebApplicationException(Response.Status.NOT_FOUND);
  }
}
origin: labsai/EDDI

  @Override
  public List<DeploymentInfo> readDeploymentInfos() {
    try {
      return deploymentStore.readDeploymentInfos();
    } catch (IResourceStore.ResourceStoreException e) {
      log.error(e.getLocalizedMessage(), e);
      throw new InternalServerErrorException("Error while reading DeploymentInfos.");
    }
  }
}
origin: labsai/EDDI

@Override
public void updateUser(String userId, User user) {
  try {
    userStore.updateUser(userId, user);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException();
  }
}
origin: labsai/EDDI

@Override
public void updateGroup(String groupId, Group group) {
  try {
    groupStore.updateGroup(groupId, group);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException();
  }
}
origin: labsai/EDDI

@Override
public Group readGroup(String groupId) {
  try {
    return groupStore.readGroup(groupId);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException();
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NoLogWebApplicationException(Response.Status.NOT_FOUND);
  }
}
origin: labsai/EDDI

@Override
public List<DocumentDescriptor> readDescriptors(String type, String filter, Integer index, Integer limit) {
  try {
    return documentDescriptorStore.readDescriptors(type, filter, index, limit, false);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage(), e);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NotFoundException(e.getLocalizedMessage(), e);
  }
}
origin: labsai/EDDI

@Override
public Response patchOutputSet(String id, Integer version, PatchInstruction<OutputConfigurationSet>[] patchInstructions) {
  try {
    OutputConfigurationSet currentOutputConfigurationSet = outputStore.read(id, version);
    OutputConfigurationSet patchedOutputConfigurationSet = patchDocument(currentOutputConfigurationSet, patchInstructions);
    return updateOutputSet(id, version, patchedOutputConfigurationSet);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage(), e);
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NotFoundException(e.getLocalizedMessage(), e);
  }
}
origin: labsai/EDDI

  @Override
  public void updatePermissions(String resourceId, Permissions permissions) {
    try {
      permissionStore.updatePermissions(resourceId, permissions);
    } catch (IResourceStore.ResourceStoreException e) {
      throw new InternalServerErrorException(e.getLocalizedMessage(), e);
    }
  }
}
origin: labsai/EDDI

@Override
public Response deleteUserConversation(String intent, String userId) {
  try {
    userConversationStore.deleteUserConversation(intent, userId);
    userConversationCache.remove(calculateCacheKey(intent, userId));
    return Response.ok().build();
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException(e.getLocalizedMessage());
  }
}
origin: labsai/EDDI

@Override
public URI searchUser(String username) {
  try {
    String id = userStore.searchUser(username);
    return RestUtilities.createURI(resourceURI, id);
  } catch (IResourceStore.ResourceStoreException e) {
    log.error(e.getLocalizedMessage(), e);
    throw new InternalServerErrorException();
  } catch (IResourceStore.ResourceNotFoundException e) {
    throw new NoLogWebApplicationException(Response.Status.NOT_FOUND);
  }
}
ai.labs.persistenceIResourceStore$ResourceStoreExceptiongetLocalizedMessage

Popular methods of IResourceStore$ResourceStoreException

  • <init>
  • getMessage

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now