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
package com.example.proto.grpc.exception.message; | |
import com.example.proto.grpc.exception.message.DetailMessage; | |
import com.example.proto.grpc.exception.message.MessageResolver; | |
import com.google.protobuf.Message; | |
import io.grpc.Status; | |
import java.util.Collections; | |
import java.util.Set; |
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
package com.example.proto.grpc.exception.message; | |
import com.google.protobuf.Message; | |
import com.google.rpc.LocalizedMessage; | |
/** | |
* エラーメッセージの詳細を扱います | |
*/ | |
public interface DetailMessage { |
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
package com.example.proto.grpc.exception.message; | |
import com.google.protobuf.Message; | |
import java.util.HashSet; | |
import java.util.Set; | |
/** | |
* DetailMessageのためのユーティリティクラス |
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
package com.example.proto.grpc.exception.message; | |
import org.springframework.lang.Nullable; | |
import java.util.Locale; | |
/** | |
* テンプレート化されたメッセージの変換を扱います | |
*/ | |
public interface MessageResolver { |
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
package com.example.proto.grpc.exception.message; | |
import com.google.protobuf.Message; | |
import io.grpc.Status; | |
import java.util.LinkedHashMap; | |
import java.util.Objects; | |
/** | |
* 特定のgRPCレスポンスのための例外クラスです。 |
OlderNewer