Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
パニックせず、エラーを返す。 close #421 ## 例 問題が発生しパニックになるluseデータ #398 を入力とした場合: パニックにはならない。以下のログが出力される。 GUIまではエラーがたどり着いておらず「完了しました」とダイアログが出る。 ``` [2024-03-08][05:33:08][INFO][app] Running pipeline with input: ["/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533926_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533945_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533955_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533936_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533956_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533935_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533925_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533946_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533947_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533934_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533957_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533937_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533954_luse_6668_2_op.gml", "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533944_luse_6668_2_op.gml"] [2024-03-08][05:33:08][INFO][nusamai::pipeline::runner] Source thread started. [2024-03-08][05:33:08][INFO][nusamai::pipeline::runner] Transformer thread started. [2024-03-08][05:33:08][INFO][nusamai::pipeline::runner] Sink thread started. [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533926_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533946_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533936_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533947_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533955_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533934_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533944_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533945_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533937_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533935_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533954_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533957_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533956_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][INFO][nusamai::source::citygml] Parsing CityGML file: "/Users/sorami/Desktop/plateau/13100_tokyo23-ku_2022_citygml_1_2_op/udx/luse/533925_luse_6668_2_op.gml" ... [2024-03-08][05:33:08][WARN][nusamai::sink::gpkg::table] TypeDef::Feature - Unsupported attribute type: Point ('location') [2024-03-08][05:33:08][WARN][nusamai::sink::gpkg::table] TypeDef::Feature - Unsupported attribute type: Point ('startPoint') [2024-03-08][05:33:08][WARN][nusamai::sink::gpkg::table] TypeDef::Feature - Unsupported attribute type: Point ('endPoint') [2024-03-08][05:33:08][WARN][nusamai::sink::gpkg::table] TypeDef::Feature - Unsupported attribute type: Point ('origin') [2024-03-08][05:33:08][WARN][nusamai::sink::gpkg::table] TypeDef::Feature - Unsupported attribute type: Point ('elevationValue') [2024-03-08][05:33:08][WARN][nusamai::sink::gpkg::table] TypeDef::Feature - Unsupported attribute type: Point ('pos') [2024-03-08][05:33:08][INFO][app] Feedback message from the pipeline FeedbackMessage { message: "Fatal error", error: Some(Other("SQLx error: error returned from database: (code: 1) duplicate column name: id")) } [2024-03-08][05:33:08][INFO][nusamai::pipeline::runner] Source thread finished. [2024-03-08][05:33:08][INFO][app] Feedback message from the pipeline FeedbackMessage { message: "Fatal error", error: Some(Canceled) } [2024-03-08][05:33:08][INFO][nusamai::pipeline::runner] Sink thread finished. [2024-03-08][05:33:08][INFO][app] Feedback message from the pipeline FeedbackMessage { message: "Fatal error", error: Some(Canceled) } [2024-03-08][05:33:08][INFO][nusamai::pipeline::runner] Transformer thread finished. [2024-03-08][05:33:08][INFO][app] Pipeline canceled ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **リファクタリング** - エラーハンドリングを改善し、`PipelineError`型を使用してエラーを適切に処理するように変更しました。 <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information