Skip to content

Commit ad4e2fb

Browse files
committed
Rename exception to FirstAcknowledgementException
1 parent e98b3ed commit ad4e2fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/net/dv8tion/jda/api/exceptions/FirstAckException.java renamed to src/main/java/net/dv8tion/jda/api/exceptions/FirstAcknowledgementException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
/**
2020
* Used to indicate where an interaction was first acknowledged at, for debugging purposes.
2121
*/
22-
public class FirstAckException extends RuntimeException
22+
public class FirstAcknowledgementException extends RuntimeException
2323
{
24-
public FirstAckException()
24+
public FirstAcknowledgementException()
2525
{
2626
super("This is where the interaction was first acknowledged at");
2727
}

src/main/java/net/dv8tion/jda/internal/interactions/InteractionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import net.dv8tion.jda.api.entities.channel.Channel;
2525
import net.dv8tion.jda.api.entities.channel.ChannelType;
2626
import net.dv8tion.jda.api.entities.channel.middleman.GuildChannel;
27-
import net.dv8tion.jda.api.exceptions.FirstAckException;
27+
import net.dv8tion.jda.api.exceptions.FirstAcknowledgementException;
2828
import net.dv8tion.jda.api.interactions.DiscordLocale;
2929
import net.dv8tion.jda.api.interactions.IntegrationOwners;
3030
import net.dv8tion.jda.api.interactions.Interaction;
@@ -156,7 +156,7 @@ public synchronized IllegalStateException tryAck()
156156
{
157157
// Store where the first ack was made, so we can use show it on the 2nd ack
158158
if (recordAckTraces)
159-
firstAckTrace = new FirstAckException();
159+
firstAckTrace = new FirstAcknowledgementException();
160160
isAck = true;
161161
return null;
162162
}

0 commit comments

Comments
 (0)