Dynamic error messages

Abierto
#14,692 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
java
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
7 d 16 h
PR fusionados (30 d)
15

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/cloudstack

Todos los issues de apache/cloudstack

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.