diff --git a/lib/api/lib.api b/lib/api/lib.api index eea2884..891530a 100644 --- a/lib/api/lib.api +++ b/lib/api/lib.api @@ -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 (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; diff --git a/lib/src/main/kotlin/app/cash/kfsm/InvalidStateTransition.kt b/lib/src/main/kotlin/app/cash/kfsm/InvalidStateTransition.kt index f489a79..9fcbad2 100644 --- a/lib/src/main/kotlin/app/cash/kfsm/InvalidStateTransition.kt +++ b/lib/src/main/kotlin/app/cash/kfsm/InvalidStateTransition.kt @@ -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]"