Skip to content

Commit 1868fb8

Browse files
committed
1 parent d17bc4a commit 1868fb8

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

mylyn.commons/org.eclipse.mylyn.commons.sdk.util/src/org/eclipse/mylyn/commons/sdk/util/MylynResourceMissingException.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2025 George
2+
* Copyright (c) 2025 George Lindholm
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v2.0
55
* which accompanies this distribution, and is available at
@@ -12,21 +12,17 @@
1212
package org.eclipse.mylyn.commons.sdk.util;
1313

1414
/**
15-
* Should really be ResourceMissingException but that could break existing code. <br/>
15+
* FIXME: Should really be ResourceMissingException but that could break existing code. <br/>
1616
* Use to be abused junit.framework.AssertionFailedError
17+
*
18+
* @Since 4.8.0
1719
*/
1820
public class MylynResourceMissingException extends AssertionError {
1921

2022
private static final long serialVersionUID = 1L;
2123

2224
/**
23-
* Constructs a new AssertionFailedError without a detail message.
24-
*/
25-
public MylynResourceMissingException() {
26-
}
27-
28-
/**
29-
* Constructs a new AssertionFailedError with the specified detail message. A null message is replaced by an empty String.
25+
* Constructs a new MylynResourceMissingException with the specified detail message. A null message is replaced by an empty String.
3026
*
3127
* @param message
3228
* the detail message. The detail message is saved for later retrieval by the {@code Throwable.getMessage()} method.

mylyn.tasks/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import java.io.IOException;
2121
import java.util.Properties;
2222

23-
import org.eclipse.mylyn.commons.sdk.util.MylynResourceMissingException;
2423
import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil;
24+
import org.eclipse.mylyn.commons.sdk.util.MylynResourceMissingException;
2525

2626

2727
/**
@@ -80,7 +80,7 @@ public static Credentials readCredentials(PrivilegeLevel level, String realm) {
8080
try {
8181
file = getFile(TestUtil.class, "credentials.properties");
8282
if (!file.exists()) {
83-
throw new MylynResourceMissingException();
83+
throw new MylynResourceMissingException("Can't find 'credentials.properties'");
8484
}
8585
} catch (MylynResourceMissingException e) {
8686
file = new File(new File(System.getProperty("user.home"), ".mylyn"), "credentials.properties");

0 commit comments

Comments
 (0)