Skip to content

Commit

Permalink
Makes transition private in InvalidStateTransition
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomd committed Nov 11, 2024
1 parent b0e53ce commit 82923b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/api/lib.api
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ public final class app/cash/kfsm/InvalidStateMachine : java/lang/Exception {

public final class app/cash/kfsm/InvalidStateTransition : java/lang/Exception {
public fun <init> (Lapp/cash/kfsm/Transition;Lapp/cash/kfsm/Value;)V
public final fun component1 ()Lapp/cash/kfsm/Transition;
public final fun component2 ()Lapp/cash/kfsm/Value;
public final fun copy (Lapp/cash/kfsm/Transition;Lapp/cash/kfsm/Value;)Lapp/cash/kfsm/InvalidStateTransition;
public static synthetic fun copy$default (Lapp/cash/kfsm/InvalidStateTransition;Lapp/cash/kfsm/Transition;Lapp/cash/kfsm/Value;ILjava/lang/Object;)Lapp/cash/kfsm/InvalidStateTransition;
public fun equals (Ljava/lang/Object;)Z
public final fun getTransition ()Lapp/cash/kfsm/Transition;
public final fun getValue ()Lapp/cash/kfsm/Value;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package app.cash.kfsm

data class InvalidStateTransition(val transition: Transition<*, *>, val value: Value<*, *>) : Exception(
data class InvalidStateTransition(private val transition: Transition<*, *>, val value: Value<*, *>) : Exception(
"Value cannot transition ${
transition.from.set.toList().sortedBy { it.toString() }.joinToString(", ", prefix = "{", postfix = "}")
} to ${transition.to}, because it is currently ${value.state}. [value=$value]"
Expand Down

0 comments on commit 82923b7

Please sign in to comment.