Skip to content

Commit

Permalink
Extend Exception and not Throwable. Fix #119
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Sep 11, 2023
1 parent 309dc5e commit e54484d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ POM_NAME=rssparser
POM_DESCRIPTION=A Kotlin Multiplatform library to parse RSS Feed

GROUP=com.prof18.rssparser
VERSION_NAME=6.0.2
VERSION_NAME=6.0.3

POM_INCEPTION_YEAR=2016
POM_URL=https://github.com/prof18/RSS-Parser.git
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ android-compile-sdk = "33"
android-min-sdk = "21"
android-target-sdk = "33"
kotlin = "1.8.22"
library-version-name = "6.0.2"
library-version-name = "6.0.3"

# Library dependencies
com-squareup-okhttp3 = "4.10.0"
Expand Down
4 changes: 2 additions & 2 deletions rssparser/api/android/rssparser.api
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public final class com/prof18/rssparser/RssParserBuilderKt {
public static final fun RssParser ()Lcom/prof18/rssparser/RssParser;
}

public final class com/prof18/rssparser/exception/HttpException : java/lang/Throwable {
public final class com/prof18/rssparser/exception/HttpException : java/lang/Exception {
public fun <init> (ILjava/lang/String;)V
public final fun component1 ()I
public final fun component2 ()Ljava/lang/String;
Expand All @@ -27,7 +27,7 @@ public final class com/prof18/rssparser/exception/HttpException : java/lang/Thro
public fun toString ()Ljava/lang/String;
}

public final class com/prof18/rssparser/exception/RssParsingException : java/lang/Throwable {
public final class com/prof18/rssparser/exception/RssParsingException : java/lang/Exception {
public fun <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
public final fun component1 ()Ljava/lang/String;
public final fun component2 ()Ljava/lang/Throwable;
Expand Down
4 changes: 2 additions & 2 deletions rssparser/api/jvm/rssparser.api
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public final class com/prof18/rssparser/RssParserBuilderKt {
public static final fun RssParser ()Lcom/prof18/rssparser/RssParser;
}

public final class com/prof18/rssparser/exception/HttpException : java/lang/Throwable {
public final class com/prof18/rssparser/exception/HttpException : java/lang/Exception {
public fun <init> (ILjava/lang/String;)V
public final fun component1 ()I
public final fun component2 ()Ljava/lang/String;
Expand All @@ -27,7 +27,7 @@ public final class com/prof18/rssparser/exception/HttpException : java/lang/Thro
public fun toString ()Ljava/lang/String;
}

public final class com/prof18/rssparser/exception/RssParsingException : java/lang/Throwable {
public final class com/prof18/rssparser/exception/RssParsingException : java/lang/Exception {
public fun <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
public final fun component1 ()Ljava/lang/String;
public final fun component2 ()Ljava/lang/Throwable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ package com.prof18.rssparser.exception
data class HttpException(
val code: Int,
override val message: String?,
) : Throwable()
) : Exception()
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ package com.prof18.rssparser.exception
data class RssParsingException(
override val message: String?,
override val cause: Throwable?,
) : Throwable()
) : Exception()
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ internal data class NSXMLParsingException(
val failureReason: String?,
val recoverySuggestion: String?,
override val message: String?,
) : Throwable()
) : Exception()
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.prof18.rssparser.RssParser
import com.prof18.rssparser.RssParserBuilder
import com.prof18.rssparser.model.RssChannel
import kotlinx.coroutines.Dispatchers
Expand Down

0 comments on commit e54484d

Please sign in to comment.