Python 2.7은 지원이 종료되었으며 2026년 1월 31일에
지원 중단됩니다. 지원 중단 후에는 조직에서 이전에 조직 정책을 사용하여 레거시 런타임의 배포를 다시 사용 설정한 경우에도 Python 2.7 애플리케이션을 배포할 수 없습니다. 기존 Python 2.7 애플리케이션은
지원 중단 날짜 이후에도 계속 실행되고 트래픽을 수신합니다.
지원되는 최신 Python 버전으로 마이그레이션하는 것이 좋습니다.
메시지 모듈 예외
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
protorpc.messages
패키지는 다음 예외 클래스를 제공합니다.
- DecodeError() DecodeError()
- 인코딩된 메시지를 디코딩하는 중에 오류가 발생하면 발생합니다.
- DefinitionNotFoundError() DefinitionNotFoundError()
- 정의를 찾을 수 없으면 발생합니다.
- DuplicateNumberError() DuplicateNumberError()
- 필드 한 개에 중복된 숫자가 할당되면 발생합니다.
- EnumDefinitionError() 클래스
- 필드 정의에서 오류가 발생하면 발생합니다.
- FieldDefinitionError() FieldDefinitionError()
- 필드 정의에서 오류가 발생하면 발생합니다.
- InvalidDefaultError() InvalidDefaultError()
- 필드에 잘못된 기본값이 제공되면 발생합니다.
- InvalidNumberError() InvalidNumberError()
- 필드에 잘못된 숫자가 제공되면 발생합니다.
- InvalidVariantError() InvalidVariantError()
- 필드에 잘못된 변형이 제공되면 발생합니다.
- MessageDefinitionError() MessageDefinitionError()
- 메시지 정의에서 오류가 발생하면 발생합니다.
- ValidationError() ValidationError()
- 메시지에 잘못된 값이 있으면 발생합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-09-04(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eThe \u003ccode\u003eprotorpc.messages\u003c/code\u003e package defines various exception classes for handling errors related to message encoding and decoding.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDefinitionNotFoundError\u003c/code\u003e is raised when a necessary definition is missing.\u003c/p\u003e\n"],["\u003cp\u003eMultiple exceptions exist for errors in defining messages, fields, and enums, including \u003ccode\u003eMessageDefinitionError\u003c/code\u003e, \u003ccode\u003eFieldDefinitionError\u003c/code\u003e, and \u003ccode\u003eEnumDefinitionError\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIssues with field numbers, default values, and variants raise \u003ccode\u003eDuplicateNumberError\u003c/code\u003e, \u003ccode\u003eInvalidDefaultError\u003c/code\u003e, and \u003ccode\u003eInvalidVariantError\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eValidationError\u003c/code\u003e indicates that a message contains an invalid value.\u003c/p\u003e\n"]]],[],null,["# Messages Module Exceptions\n\nThe `protorpc.messages` package provides the following exception classes:\n\nclass DecodeError()\n: Raised when there is an error decoding an encoded message.\n\nclass DefinitionNotFoundError()\n: Raised when a definition is not found.\n\nclass DuplicateNumberError()\n: Raised when a duplicate number is assigned to a field.\n\nclass EnumDefinitionError()\n: Raised when there are errors in Enum definitions.\n\nclass FieldDefinitionError()\n: Raised when there are errors in field definitions.\n\nclass InvalidDefaultError()\n: Raised when an invalid default value is provided to a field.\n\nclass InvalidNumberError()\n: Raised when an invalid number is provided to a field.\n\nclass InvalidVariantError()\n: Raised when an invalid variant is provided to a field.\n\nclass MessageDefinitionError()\n: Raised when there are errors in Message definitions.\n\nclass ValidationError()\n: Raised when a message has an invalid value."]]