generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
348b4bb
commit 6cfefe0
Showing
12 changed files
with
149 additions
and
68 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
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
13 changes: 0 additions & 13 deletions
13
src/main/kotlin/com/github/aarcangeli/ideaclangformat/exceptions/ClangExitCodeError.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/kotlin/com/github/aarcangeli/ideaclangformat/exceptions/ClangFormatError.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/main/kotlin/com/github/aarcangeli/ideaclangformat/exceptions/ClangFormatNotFound.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
.../kotlin/com/github/aarcangeli/ideaclangformat/exceptions/ClangMissingLanguageException.kt
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
src/main/kotlin/com/github/aarcangeli/ideaclangformat/exceptions/exceptions.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,35 @@ | ||
package com.github.aarcangeli.ideaclangformat.exceptions | ||
|
||
import com.github.aarcangeli.ideaclangformat.MyBundle | ||
import com.intellij.build.FileNavigatable | ||
import com.intellij.pom.Navigatable | ||
import org.jetbrains.annotations.Nls | ||
|
||
open class ClangFormatError : RuntimeException { | ||
constructor(message: @Nls String) : super(message) | ||
constructor(message: @Nls String, cause: Throwable?) : super(message, cause) | ||
} | ||
|
||
class ClangFormatNotFound : ClangFormatError(MyBundle.message("error.clang-format.error.not-found")) | ||
|
||
/** | ||
* Error when clang-format reports an error on the style file. | ||
*/ | ||
class ClangValidationError(@JvmField val description: @Nls String, private val fileNavigatable: FileNavigatable) : | ||
ClangFormatError(description) { | ||
|
||
fun getFileNavigatable(): Navigatable { | ||
return fileNavigatable | ||
} | ||
} | ||
|
||
/** | ||
* Thrown on any exit code different from 0. | ||
*/ | ||
class ClangExitCode(val exitCode: Int) : ClangFormatError("Clang-format exited with code $exitCode") | ||
|
||
/** | ||
* Thrown when no ".clang-format" files support the file language. | ||
* eg: "Configuration file(s) do(es) not support CSharp: /path/.clang-format" | ||
*/ | ||
class ClangMissingLanguageException(message: @Nls String) : ClangFormatError(message) |
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
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
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
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
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