congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Path (java.nio.file)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ImageIO (javax.imageio)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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