Dynamic error messages

Aberta
#14,692 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
18/100
Tipo de issue
Funcionalidade
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
java
Domínio
api, backend

Direção de pesquisa

The issue proposes extending ACS exceptions such as CloudRuntimeException with optional multi-message constructors, then choosing the message in API responses by the caller's Role type. Start by reading how CloudRuntimeException is defined and how API error responses are built from it, and note that the role check has no defined design yet. Done means maintainers have agreed on the exception and role-based message design, and only then should code change.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

The required feature described as a wish

As a Admin I would like to have more informative error messages. Meanwhile, I do not want the end-users to receive too much information about the system or infrastructure. It would be interesting to have a way so that the APIs return different errors depending on my Role type.

Without putting too much thought into it, we could extend the ACS exceptions, like the CloudRuntimeException, to have optional constructors with multiple messages, and when returning those messages in the API response we would check for the Role type and send the correct message.

Linguagem predominante
Java
Estrelas
3.1k
Forks
1.4k
Merge médio
7d 16h
PRs com merge (30d)
15

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de apache/cloudstack

Todas as issues de apache/cloudstack

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.