Reformat exceptions

This also makes the variable and attribute names consistent with the
standard `Exception` class.
This commit is contained in:
Anderson Mesquita 2019-07-21 23:26:47 -04:00
parent 012ed2e8f2
commit f484b7965c
8 changed files with 83 additions and 93 deletions

View File

@ -17,5 +17,4 @@ public class GpodnetServiceAuthenticationException extends GpodnetServiceExcepti
public GpodnetServiceAuthenticationException(Throwable cause) {
super(cause);
}
}

View File

@ -7,6 +7,4 @@ class GpodnetServiceBadStatusCodeException extends GpodnetServiceException {
super(message);
this.statusCode = statusCode;
}
}

View File

@ -10,16 +10,15 @@ public class DownloadRequestException extends Exception {
super();
}
public DownloadRequestException(String detailMessage, Throwable throwable) {
super(detailMessage, throwable);
public DownloadRequestException(String message, Throwable cause) {
super(message, cause);
}
public DownloadRequestException(String detailMessage) {
super(detailMessage);
public DownloadRequestException(String message) {
super(message);
}
public DownloadRequestException(Throwable throwable) {
super(throwable);
public DownloadRequestException(Throwable cause) {
super(cause);
}
}

View File

@ -41,6 +41,4 @@ public class UnsupportedFeedtypeException extends Exception {
return "Type " + type + " not supported";
}
}
}

View File

@ -1,21 +1,22 @@
package de.danoeh.antennapod.core.util;
/** Thrown if a feed has invalid attribute values. */
/**
* Thrown if a feed has invalid attribute values.
*/
public class InvalidFeedException extends Exception {
public InvalidFeedException() {
}
public InvalidFeedException(String detailMessage) {
super(detailMessage);
public InvalidFeedException(String message) {
super(message);
}
public InvalidFeedException(Throwable throwable) {
super(throwable);
public InvalidFeedException(Throwable cause) {
super(cause);
}
public InvalidFeedException(String detailMessage, Throwable throwable) {
super(detailMessage, throwable);
public InvalidFeedException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -5,16 +5,15 @@ public class ID3ReaderException extends Exception {
public ID3ReaderException() {
}
public ID3ReaderException(String arg0) {
super(arg0);
public ID3ReaderException(String message) {
super(message);
}
public ID3ReaderException(Throwable arg0) {
super(arg0);
public ID3ReaderException(Throwable message) {
super(message);
}
public ID3ReaderException(String arg0, Throwable arg1) {
super(arg0, arg1);
public ID3ReaderException(String message, Throwable cause) {
super(message, cause);
}
}

View File

@ -1,24 +1,20 @@
package de.danoeh.antennapod.core.util.vorbiscommentreader;
public class VorbisCommentReaderException extends Exception {
public VorbisCommentReaderException() {
super();
// TODO Auto-generated constructor stub
}
public VorbisCommentReaderException(String arg0, Throwable arg1) {
super(arg0, arg1);
// TODO Auto-generated constructor stub
public VorbisCommentReaderException(String message, Throwable cause) {
super(message, cause);
}
public VorbisCommentReaderException(String arg0) {
super(arg0);
// TODO Auto-generated constructor stub
public VorbisCommentReaderException(String message) {
super(message);
}
public VorbisCommentReaderException(Throwable arg0) {
super(arg0);
// TODO Auto-generated constructor stub
public VorbisCommentReaderException(Throwable message) {
super(message);
}
}