Commit 7203a2d8 authored by Bryan Cazabonne's avatar Bryan Cazabonne
Browse files

Updated error message of Orekit internal error exception.

Fixes #782
parent 746abc78
Pipeline #1074 passed with stage
in 25 minutes and 23 seconds
......@@ -21,6 +21,9 @@
</properties>
<body>
<release version="11.0" date="TBD" description="TBD">
<action dev="bryan" type="update" issue="782">
Updated error message of Orekit internal error exception.
</action>
<action dev="luc" type="add">
Added support for reading and writing CCSDS NDM composite messages.
</action>
......
......@@ -34,7 +34,7 @@ public class OrekitInternalError extends IllegalStateException implements Locali
/** Parts to insert in the format (no translation). */
private final String[] parts = new String[] {
"https://gitlab.orekit.org/orekit/orekit/issues"
"https://forum.orekit.org"
};
/** Create an exception with localized message.
......
......@@ -47,7 +47,7 @@ public enum OrekitMessages implements Localizable {
// CHECKSTYLE: stop JavadocVariable check
INTERNAL_ERROR("internal error, please notify development team by creating an issue at {0}"),
INTERNAL_ERROR("internal error, please notify development team by creating a new topic at {0}"),
ALTITUDE_BELOW_ALLOWED_THRESHOLD("altitude ({0} m) is below the {1} m allowed threshold"),
POINT_INSIDE_ELLIPSOID("point is inside ellipsoid"),
TRAJECTORY_INSIDE_BRILLOUIN_SPHERE("trajectory inside the Brillouin sphere (r = {0})"),
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = intern fejl, informer venligst udviklerne ved at oprette en sag på {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = <MISSING TRANSLATION>
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = højde ({0} m) er under den tilladte tærskel på {1} m
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = Interner Fehler! Unterstützen Sie uns und erstellen Sie einen Fehlerbericht unter {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = <MISSING TRANSLATION>
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = Höhe ({0} m) ist niedriger als der erlaubte Grenzwert von {1} m
......
# internal error, please notify development team by creating an issue at {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = <MISSING TRANSLATION>
# altitude ({0} m) is below the {1} m allowed threshold
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = internal error, please notify development team by creating an issue at {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = internal error, please notify development team by creating a new topic at {0}
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = altitude ({0} m) is below the {1} m allowed threshold
......
# internal error, please notify development team by creating an issue at {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = <MISSING TRANSLATION>
# altitude ({0} m) is below the {1} m allowed threshold
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = erreur interne, merci de signaler le problème en ouvrant une fiche d''anomalie sur {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = erreur interne, merci de signaler le problème en ouvrant une nouvelle discussion sur {0}
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = altitude ({0} m) au dessous de la limite autorisée de {1} m
......
# internal error, please notify development team by creating an issue at {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = <MISSING TRANSLATION>
# altitude ({0} m) is below the {1} m allowed threshold
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = Errore interno, segnalare il problema creando un''anomalia su {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = Errore interno, informare il team dev per creare un nuovo argomento su {0}
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = L''altitudine ({0} m) è inferiore alla soglia ammessa di {1} m
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = intern feil, kontakt utviklingerne ved å åpne en problemrapport på {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = <MISSING TRANSLATION>
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = høyde ({0} m) er under den tillatte terskelen {1} m
......
# internal error, please notify development team by creating an issue at {0}
INTERNAL_ERROR = eroare internă, vă rugăm să informați echipa de dezvoltare prin adăugarea unui tichet la {0}
# internal error, please notify development team by creating a new topic at {0}
INTERNAL_ERROR = <MISSING TRANSLATION>
# altitude ({0} m) is below the {1} m allowed threshold
ALTITUDE_BELOW_ALLOWED_THRESHOLD = altitudinea ({0} m) este sub limita permisă de {1} m
......
......@@ -29,10 +29,10 @@ public class OrekitInternalErrorTest {
OrekitInternalError e = new OrekitInternalError(null);
Assert.assertEquals(OrekitMessages.INTERNAL_ERROR, e.getSpecifier());
Assert.assertEquals(1, e.getParts().length);
Assert.assertEquals("https://gitlab.orekit.org/orekit/orekit/issues", e.getParts()[0]);
Assert.assertTrue(e.getMessage().contains("https://gitlab.orekit.org/orekit/orekit/issues"));
Assert.assertEquals("https://forum.orekit.org", e.getParts()[0]);
Assert.assertTrue(e.getMessage().contains("https://forum.orekit.org"));
Assert.assertEquals(e.getMessage(Locale.getDefault()), e.getLocalizedMessage());
Assert.assertEquals("erreur interne, merci de signaler le problème en ouvrant une fiche d'anomalie sur https://gitlab.orekit.org/orekit/orekit/issues",
Assert.assertEquals("erreur interne, merci de signaler le problème en ouvrant une nouvelle discussion sur https://forum.orekit.org",
e.getMessage(Locale.FRENCH));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment