Skip to content

For a list of common Java exceptions have a look at The Exception Hierarchy and Types of Exception in Java with Examples. The JavaDoc for all exception can be found by searching this list.

Some additional information for exceptions that often occur in MPS:

What does the dollar sign in error messages mean?

This indicates an anomyous class (more information).

MPS

name example description
jetbrains.mps.build.mps.util.ModuleLoaderException none Deprecated exception that is not thrown anymore since 2017.
jetbrains.mps.smodel.persistence.def.ModelReadException *.mps file is corrupt Indicates failure to read model. Is not specific to 'default' persistence.
jetbrains.mps.smodel.IllegalModelAccessException accessing a model from a swing button handler (e.g. you can read model only inside read actions) Indicates forbidden operations over a SModel/SNode (official documentation).
AssertionError: Taking target node of dynamic reference
whose source node is not in a model
a node is in detached state The source of a dynamic reference doesn't belong to a model.
Position n is not allowed for X The caret is the first position but the first position was disabled in the style. The caret is at a position that is not allowed.
ModuleClassLoaderIsDisposedException a module couldn't be disposed and it is loaded again The classloader of a module is disposed.
ClassLoader of module could not be found A module can't be loaded because the classloader can't be found.

Intellij Platform

name example description
com.intellij.diagnostic.PluginException usage of deprecated Intellij SDK methods Represents an internal error caused by a plugin. It may happen if the plugin's code fails with an exception, or if the plugin violates some contract of IntelliJ Platform.
AlreadyDisposedException An already disposed objects gets disposed again (e.g. a Project)
Exception from class SlowOperations ticket If you get an exception from this method, then you need to move the computation to the background while also trying to avoid blocking the UI thread as well.
Argument for @NotNull parameter must not be null method with @NotNull Annotation is called with null A null check failed (official documentation).
Action dispatch failed. The execution of an action failed.
ExtensionInstantiationException This exception is thrown if some extension (service, extension point) failed to initialize.

Last update: January 1, 2022

Comments

Back to top