Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove static ProcessException.Handler.THROW implementation #117

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion library/process/api/process.api
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public final class io/matthewnelson/kmp/process/ProcessException$Companion {
public abstract interface class io/matthewnelson/kmp/process/ProcessException$Handler {
public static final field Companion Lio/matthewnelson/kmp/process/ProcessException$Handler$Companion;
public static final field IGNORE Lio/matthewnelson/kmp/process/ProcessException$Handler;
public static final field THROW Lio/matthewnelson/kmp/process/ProcessException$Handler;
public abstract fun onException (Lio/matthewnelson/kmp/process/ProcessException;)V
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,6 @@ public class ProcessException private constructor(
override fun onException(e: ProcessException) {}
override fun toString(): String = "ProcessException.Handler.IGNORE"
}

/**
* Static instance that automatically throws the [ProcessException].
* */
@JvmField
public val THROW: Handler = object : Handler {
override fun onException(e: ProcessException) { throw e }
override fun toString(): String = "ProcessException.Handler.THROW"
}
}
}

Expand Down
Loading