-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into gh-3059-federated-store-applyviewtoelemen…
…ts-schema-validation
- Loading branch information
Showing
12 changed files
with
323 additions
and
106 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
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
32 changes: 32 additions & 0 deletions
32
...n/java/uk/gov/gchq/gaffer/store/schema/exception/SplitElementGroupDefSchemaException.java
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,32 @@ | ||
/* | ||
* Copyright 2023 Crown Copyright | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package uk.gov.gchq.gaffer.store.schema.exception; | ||
|
||
import uk.gov.gchq.gaffer.data.elementdefinition.exception.SchemaException; | ||
|
||
public class SplitElementGroupDefSchemaException extends SchemaException { | ||
|
||
private static final String ELEMENT_GROUP_MUST_ALL_BE_DEFINED_IN_A_SINGLE_SCHEMA = "Element group properties cannot be defined in different schema parts, they must all be defined in a single schema part. Please fix this group: "; | ||
|
||
public SplitElementGroupDefSchemaException(final String sharedGroup) { | ||
super(ELEMENT_GROUP_MUST_ALL_BE_DEFINED_IN_A_SINGLE_SCHEMA + sharedGroup); | ||
} | ||
|
||
public SplitElementGroupDefSchemaException(final String message, final Throwable e) { | ||
super(message, e); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../main/java/uk/gov/gchq/gaffer/store/schema/exception/VertexSerialiserSchemaException.java
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,33 @@ | ||
/* | ||
* Copyright 2023 Crown Copyright | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package uk.gov.gchq.gaffer.store.schema.exception; | ||
|
||
import uk.gov.gchq.gaffer.data.elementdefinition.exception.SchemaException; | ||
import uk.gov.gchq.gaffer.store.schema.Schema; | ||
|
||
public class VertexSerialiserSchemaException extends SchemaException { | ||
public static final String VERTEX_SERIALISER = "vertex serialiser"; | ||
private static final String SCHEMAS_CONFLICT_WITH_VERTEX_SERIALISER = String.format(Schema.FORMAT_UNABLE_TO_MERGE_SCHEMAS_CONFLICT_WITH_S, VERTEX_SERIALISER); | ||
|
||
public VertexSerialiserSchemaException(final String message, final Throwable e) { | ||
super(message, e); | ||
} | ||
|
||
public VertexSerialiserSchemaException(final String thisVertexSerialiser, final String thatVertexSerialiser) { | ||
super(String.format(Schema.FORMAT_EXCEPTION, SCHEMAS_CONFLICT_WITH_VERTEX_SERIALISER, thisVertexSerialiser, thatVertexSerialiser)); | ||
} | ||
} |
Oops, something went wrong.