mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 07:28:20 -04:00
renamed a method
This commit is contained in:
parent
04d6748e0d
commit
3d48efedb9
@ -19,7 +19,7 @@ public class ExceptionWithOrigin extends Exception {
|
|||||||
* @param e the exception
|
* @param e the exception
|
||||||
* @return the origin or null;
|
* @return the origin or null;
|
||||||
*/
|
*/
|
||||||
public static String getOrigin(Throwable e) {
|
public static String getOriginOf(Throwable e) {
|
||||||
while (e != null) {
|
while (e != null) {
|
||||||
if (e instanceof ExceptionWithOrigin) {
|
if (e instanceof ExceptionWithOrigin) {
|
||||||
String orig = ((ExceptionWithOrigin) e).getOriginStr();
|
String orig = ((ExceptionWithOrigin) e).getOriginStr();
|
||||||
|
@ -46,7 +46,7 @@ public class ErrorMessage implements Runnable {
|
|||||||
message.append('\n');
|
message.append('\n');
|
||||||
addExceptionMessage(e);
|
addExceptionMessage(e);
|
||||||
|
|
||||||
String orig = ExceptionWithOrigin.getOrigin(e);
|
String orig = ExceptionWithOrigin.getOriginOf(e);
|
||||||
if (orig != null) {
|
if (orig != null) {
|
||||||
if (message.length() > 0) message.append('\n');
|
if (message.length() > 0) message.append('\n');
|
||||||
message.append(Lang.get("msg_errInFile_N", orig));
|
message.append(Lang.get("msg_errInFile_N", orig));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user