Add serialVersionUID to all exceptions

For more info, see [1].

[1]: https://stackoverflow.com/questions/146715/use-the-serialversionuid-or-suppress-warnings
This commit is contained in:
Anderson Mesquita 2019-07-21 23:37:01 -04:00
parent f484b7965c
commit 28c7858387
8 changed files with 9 additions and 0 deletions

View File

@ -776,6 +776,7 @@ public abstract class NanoHTTPD {
}
public static final class ResponseException extends Exception {
private static final long serialVersionUID = 1L;
private final Response.Status status;

View File

@ -1,6 +1,7 @@
package de.danoeh.antennapod.core.gpoddernet;
public class GpodnetServiceAuthenticationException extends GpodnetServiceException {
private static final long serialVersionUID = 1L;
public GpodnetServiceAuthenticationException() {
super();

View File

@ -1,6 +1,8 @@
package de.danoeh.antennapod.core.gpoddernet;
class GpodnetServiceBadStatusCodeException extends GpodnetServiceException {
private static final long serialVersionUID = 1L;
private final int statusCode;
public GpodnetServiceBadStatusCodeException(String message, int statusCode) {

View File

@ -1,6 +1,7 @@
package de.danoeh.antennapod.core.gpoddernet;
public class GpodnetServiceException extends Exception {
private static final long serialVersionUID = 1L;
GpodnetServiceException() {
}

View File

@ -5,6 +5,7 @@ package de.danoeh.antennapod.core.storage;
* or something went wrong while processing the request.
*/
public class DownloadRequestException extends Exception {
private static final long serialVersionUID = 1L;
public DownloadRequestException() {
super();

View File

@ -4,6 +4,7 @@ package de.danoeh.antennapod.core.util;
* Thrown if a feed has invalid attribute values.
*/
public class InvalidFeedException extends Exception {
private static final long serialVersionUID = 1L;
public InvalidFeedException() {
}

View File

@ -1,6 +1,7 @@
package de.danoeh.antennapod.core.util.id3reader;
public class ID3ReaderException extends Exception {
private static final long serialVersionUID = 1L;
public ID3ReaderException() {
}

View File

@ -1,6 +1,7 @@
package de.danoeh.antennapod.core.util.vorbiscommentreader;
public class VorbisCommentReaderException extends Exception {
private static final long serialVersionUID = 1L;
public VorbisCommentReaderException() {
super();