Class ProjectNotConfiguredForLanguagesErrorImpl
java.lang.Object
com.commercetools.api.models.error.ProjectNotConfiguredForLanguagesErrorImpl
- All Implemented Interfaces:
ErrorObject
,ProjectNotConfiguredForLanguagesError
,io.vrap.rmf.base.client.ModelBase
public class ProjectNotConfiguredForLanguagesErrorImpl
extends Object
implements ProjectNotConfiguredForLanguagesError, io.vrap.rmf.base.client.ModelBase
Returned when the languages set for a Store are not supported by the Project.
The error is returned as a failed response to the Set Languages update action.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.ProjectNotConfiguredForLanguagesError
PROJECT_NOT_CONFIGURED_FOR_LANGUAGES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Languages configured for the Store."The project is not configured for given languages."
int
hashCode()
void
setLanguages
(String... languages) Languages configured for the Store.void
setLanguages
(List<String> languages) Languages configured for the Store.void
setMessage
(String message) "The project is not configured for given languages."
void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.error.ProjectNotConfiguredForLanguagesError
withProjectNotConfiguredForLanguagesError
-
Constructor Details
-
ProjectNotConfiguredForLanguagesErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceProjectNotConfiguredForLanguagesError
- Returns:
- code
-
getMessage
"The project is not configured for given languages."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceProjectNotConfiguredForLanguagesError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getLanguages
Languages configured for the Store.
- Specified by:
getLanguages
in interfaceProjectNotConfiguredForLanguagesError
- Returns:
- languages
-
setMessage
Description copied from interface:ProjectNotConfiguredForLanguagesError
"The project is not configured for given languages."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceProjectNotConfiguredForLanguagesError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setLanguages
Description copied from interface:ProjectNotConfiguredForLanguagesError
Languages configured for the Store.
- Specified by:
setLanguages
in interfaceProjectNotConfiguredForLanguagesError
- Parameters:
languages
- values to be set
-
setLanguages
Description copied from interface:ProjectNotConfiguredForLanguagesError
Languages configured for the Store.
- Specified by:
setLanguages
in interfaceProjectNotConfiguredForLanguagesError
- Parameters:
languages
- values to be set
-
equals
-
hashCode
-