Skip to content

Commit 50886bd

Browse files
Jiankai ZhengJiankai Zheng
authored andcommitted
refactor(exception): inner class exception to stand alone class
1 parent ed3e487 commit 50886bd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/main/java/spotify/exceptions/ResponseChecker.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,4 @@ public static void throwIfRequestHasNotBeenFulfilledCorrectly(ResponseBody error
3434
throw new SpotifyActionFailedException(message);
3535
}
3636
}
37-
38-
private static class SpotifyActionFailedException extends RuntimeException {
39-
40-
public SpotifyActionFailedException(String message) {
41-
super(message);
42-
}
43-
}
4437
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package spotify.exceptions;
2+
3+
public class SpotifyActionFailedException extends RuntimeException {
4+
public SpotifyActionFailedException(String message) {
5+
super(message);
6+
}
7+
}

0 commit comments

Comments
 (0)