Skip to content

Commit

Permalink
Throw IllegalStateException instead of RuntimeException on too many r…
Browse files Browse the repository at this point in the history
…econnects
  • Loading branch information
freyacodes authored Oct 12, 2023
1 parent 6581d8f commit f73feb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ internal class NodeImpl(
connect(resume)
} else {
lavakord.removeNode(this)
throw RuntimeException("Could not reconnect to websocket after too many attempts", e)
throw IllegalStateException("Could not reconnect to websocket after too many attempts", e)
}
}

Expand Down

0 comments on commit f73feb2

Please sign in to comment.