Package jetbrains.mps.extapi.persistence
Class FileKindIsNotAllowedException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- java.lang.RuntimeException
 - 
- java.lang.IllegalArgumentException
 - 
- jetbrains.mps.extapi.persistence.FileKindIsNotAllowedException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public final class FileKindIsNotAllowedException extends IllegalArgumentException
EachFileBasedModelRoothas a notion of the so-called "allowed file kinds". This exception is thrown when model root is addressed externally with file kind (as parameter) which is not allowed by this particular model root.- Since:
 - 3.5
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FileKindIsNotAllowedException(String kindName)FileKindIsNotAllowedException(String kindName, String rootPath)FileKindIsNotAllowedException(SourceRootKind disallowedKind, SourceRoot root) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
FileKindIsNotAllowedException
public FileKindIsNotAllowedException(@NotNull SourceRootKind disallowedKind, SourceRoot root)
 
 - 
 
- 
Method Detail
- 
getMessage
@NotNull public String getMessage()
- Overrides:
 getMessagein classThrowable
 
 - 
 
 -