-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFR-1057] Add attachments metadata, remove serialization dependency
- Loading branch information
Showing
23 changed files
with
1,043 additions
and
214 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/de/cyface/uploader/exception/DeprecatedFormatVersion.kt
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,27 @@ | ||
/* | ||
* Copyright 2024 Cyface GmbH | ||
* | ||
* This file is part of the Cyface Uploader. | ||
* | ||
* The Cyface Uploader is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The Cyface Uploader is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the Cyface Uploader. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.cyface.uploader.exception | ||
|
||
/** | ||
* Exception thrown when the client tries to upload a file in a formatVersion older than the current version. | ||
* | ||
* @author Armin Schnabel | ||
* @param message Details about the reason for this exception. | ||
*/ | ||
class DeprecatedFormatVersion(message: String) : Exception(message) |
30 changes: 30 additions & 0 deletions
30
src/main/kotlin/de/cyface/uploader/exception/InvalidMetaData.kt
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,30 @@ | ||
/* | ||
* Copyright 2021-2024 Cyface GmbH | ||
* | ||
* This file is part of the Cyface Uploader. | ||
* | ||
* The Cyface Uploader is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The Cyface Uploader is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the Cyface Uploader. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.cyface.uploader.exception | ||
|
||
/** | ||
* Exception thrown when the upload or pre-request does not contain the expected metadata. | ||
* | ||
* @author Armin Schnabel | ||
*/ | ||
class InvalidMetaData : Exception { | ||
constructor(message: String, cause: Throwable) : super(message, cause) | ||
constructor(message: String) : super(message) | ||
constructor(cause: Throwable) : super(cause) | ||
} |
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
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/de/cyface/uploader/exception/TooFewLocations.kt
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,27 @@ | ||
/* | ||
* Copyright 2024 Cyface GmbH | ||
* | ||
* This file is part of the Cyface Uploader. | ||
* | ||
* The Cyface Uploader is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The Cyface Uploader is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the Cyface Uploader. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.cyface.uploader.exception | ||
|
||
/** | ||
* Exception thrown when the client tries to upload a file with the locationCount smaller than required. | ||
* | ||
* @author Armin Schnabel | ||
* @param message Details about the reason for this exception. | ||
*/ | ||
class TooFewLocations(message: String) : Exception(message) |
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/de/cyface/uploader/exception/UnknownFormatVersion.kt
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,27 @@ | ||
/* | ||
* Copyright 2024 Cyface GmbH | ||
* | ||
* This file is part of the Cyface Uploader. | ||
* | ||
* The Cyface Uploader is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The Cyface Uploader is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the Cyface Uploader. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.cyface.uploader.exception | ||
|
||
/** | ||
* Exception thrown when the client tries to upload a file in an unknown formatVersion. | ||
* | ||
* @author Armin Schnabel | ||
* @param message Details about the reason for this exception. | ||
*/ | ||
class UnknownFormatVersion(message: String) : Exception(message) |
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
Oops, something went wrong.