generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't load if no shadcn, error notif on config parse
- Loading branch information
1 parent
d498c59
commit 119cb79
Showing
3 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...github/warningimhack3r/intellijshadcnplugin/backend/sources/UnparseableConfigException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.warningimhack3r.intellijshadcnplugin.backend.sources | ||
|
||
import com.github.warningimhack3r.intellijshadcnplugin.notifications.NotificationManager | ||
import com.intellij.notification.NotificationType | ||
import com.intellij.openapi.project.Project | ||
|
||
class UnparseableConfigException( | ||
project: Project, | ||
message: String? = null, | ||
cause: Throwable? = null | ||
) : Exception(message, cause) { | ||
init { | ||
NotificationManager(project).sendNotification( | ||
"Unparseable configuration file", | ||
"Your <code>components.json</code> file could not be parsed.<br />Please check that it is a valid JSON and that it contains the correct fields.", | ||
NotificationType.ERROR | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters