Class ExceptionTypeCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
-
- org.palladiosimulator.generator.fluent.repository.structure.types.ExceptionTypeCreator
-
public class ExceptionTypeCreator extends RepositoryEntity
This class constructs anExceptionType. It is used to create the 'ExceptionType' object step-by-step, i.e. 'ExceptionTypeCreator' objects are of intermediate state.- See Also:
ExceptionType
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
repository
-
-
Constructor Summary
Constructors Constructor Description ExceptionTypeCreator(RepositoryCreator repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.repository.ExceptionTypebuild()Turns the entity in the making into the finished entity.ExceptionTypeCreatorwithExceptionMessage(String message)Specifies themessagethis exception provides.ExceptionTypeCreatorwithName(String name)Defines the unique name of this current entity.
-
-
-
Constructor Detail
-
ExceptionTypeCreator
public ExceptionTypeCreator(RepositoryCreator repo)
-
-
Method Detail
-
withName
public ExceptionTypeCreator withName(String name)
Description copied from class:EntityDefines the unique name of this current entity. Once created entities are referenced by this name. Only entities with a unique name can be fetched from the model.
-
withExceptionMessage
public ExceptionTypeCreator withExceptionMessage(String message)
Specifies themessagethis exception provides.- Parameters:
message-- Returns:
- this exception in the making
-
-