Skip to content

Commit 81ff8bf

Browse files
mfazekasclaude
andcommitted
fix: add missing error types and correct error mappings
- Add IncorrectAnimationName and IncorrectStateMachineInputName error types - Fix iOS to map noStateMachineInputFound to IncorrectStateMachineInputName instead of IncorrectAnimationName - Fix Android to use correct error types instead of UNKNOWN - Regenerate Nitrogen bindings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 780479f commit 81ff8bf

6 files changed

Lines changed: 15 additions & 3 deletions

File tree

ios/HybridRiveView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ extension HybridRiveView {
230230
case RiveErrorCode.malformedFile.rawValue:
231231
return (.malformedfile, message)
232232
case RiveErrorCode.noStateMachineInputFound.rawValue:
233-
return (.incorrectanimationname, message)
233+
return (.incorrectstatemachineinputname, message)
234234
default:
235235
return (.unknown, message)
236236
}

nitrogen/generated/android/c++/JRiveErrorType.hpp

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/android/kotlin/com/margelo/nitro/rive/RiveErrorType.kt

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/swift/RiveErrorType.swift

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/shared/c++/RiveErrorType.hpp

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/Errors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ export enum RiveErrorType {
44
MalformedFile = 2,
55
IncorrectArtboardName = 3,
66
IncorrectStateMachineName = 4,
7+
IncorrectAnimationName = 5,
78
DataBindingError = 6,
9+
TextRunNotFoundError = 7,
10+
IncorrectStateMachineInputName = 8,
811
}
912

1013
export interface RiveError {

0 commit comments

Comments
 (0)