api_errors

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorHandlingType_name = map[int32]string{
		0: "ERROR_HANDLING_TYPE_UNSPECIFIED",
		1: "ERROR_HANDLING_TYPE_FATAL",
		2: "ERROR_HANDLING_TYPE_TEMPORARY",
		3: "ERROR_HANDLING_TYPE_RECOVERABLE",
	}
	ErrorHandlingType_value = map[string]int32{
		"ERROR_HANDLING_TYPE_UNSPECIFIED": 0,
		"ERROR_HANDLING_TYPE_FATAL":       1,
		"ERROR_HANDLING_TYPE_TEMPORARY":   2,
		"ERROR_HANDLING_TYPE_RECOVERABLE": 3,
	}
)

Enum value maps for ErrorHandlingType.

View Source
var (
	ErrorSeverity_name = map[int32]string{
		0: "ERROR_SEVERITY_UNSPECIFIED",
		1: "ERROR_SEVERITY_DEBUG",
		2: "ERROR_SEVERITY_INFO",
		3: "ERROR_SEVERITY_NOTICE",
		4: "ERROR_SEVERITY_WARNING",
		5: "ERROR_SEVERITY_ERROR",
		6: "ERROR_SEVERITY_CRITICAL",
		7: "ERROR_SEVERITY_ALERT",
		8: "ERROR_SEVERITY_EMERGENCY",
	}
	ErrorSeverity_value = map[string]int32{
		"ERROR_SEVERITY_UNSPECIFIED": 0,
		"ERROR_SEVERITY_DEBUG":       1,
		"ERROR_SEVERITY_INFO":        2,
		"ERROR_SEVERITY_NOTICE":      3,
		"ERROR_SEVERITY_WARNING":     4,
		"ERROR_SEVERITY_ERROR":       5,
		"ERROR_SEVERITY_CRITICAL":    6,
		"ERROR_SEVERITY_ALERT":       7,
		"ERROR_SEVERITY_EMERGENCY":   8,
	}
)

Enum value maps for ErrorSeverity.

View Source
var (
	ErrorCode_Common_name = map[int32]string{
		0:    "COMMON_UNSPECIFIED",
		1000: "COMMON_UNKNOWN",
		1001: "COMMON_INVALID_SESSION",
		1002: "COMMON_INVALID_USER_AVAILABILITY",
	}
	ErrorCode_Common_value = map[string]int32{
		"COMMON_UNSPECIFIED":               0,
		"COMMON_UNKNOWN":                   1000,
		"COMMON_INVALID_SESSION":           1001,
		"COMMON_INVALID_USER_AVAILABILITY": 1002,
	}
)

Enum value maps for ErrorCode_Common.

View Source
var (
	ErrorCode_Method_name = map[int32]string{
		0:    "METHOD_UNSPECIFIED",
		2000: "METHOD_ILLEGAL_ARGUMENT",
		2001: "METHOD_RESOURCE_NOT_FOUND",
		2002: "METHOD_RESOURCE_CONFLICT",
		2003: "METHOD_RESOURCE_INSUFFICIENT",
		3000: "METHOD_ID_TOKEN_EXPIRED",
	}
	ErrorCode_Method_value = map[string]int32{
		"METHOD_UNSPECIFIED":           0,
		"METHOD_ILLEGAL_ARGUMENT":      2000,
		"METHOD_RESOURCE_NOT_FOUND":    2001,
		"METHOD_RESOURCE_CONFLICT":     2002,
		"METHOD_RESOURCE_INSUFFICIENT": 2003,
		"METHOD_ID_TOKEN_EXPIRED":      3000,
	}
)

Enum value maps for ErrorCode_Method.

View Source
var (
	// optional google.rpc.Code grpc_code = 50100;
	E_GrpcCode = &file_api_api_errors_api_errors_proto_extTypes[0]
	// optional api.api_errors.ErrorHandlingType error_handling_type = 50101;
	E_ErrorHandlingType = &file_api_api_errors_api_errors_proto_extTypes[1]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var File_api_api_errors_api_errors_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode struct {
	// contains filtered or unexported fields
}

func (*ErrorCode) Descriptor deprecated

func (*ErrorCode) Descriptor() ([]byte, []int)

Deprecated: Use ErrorCode.ProtoReflect.Descriptor instead.

func (*ErrorCode) ProtoMessage

func (*ErrorCode) ProtoMessage()

func (*ErrorCode) ProtoReflect

func (x *ErrorCode) ProtoReflect() protoreflect.Message

func (*ErrorCode) Reset

func (x *ErrorCode) Reset()

func (*ErrorCode) String

func (x *ErrorCode) String() string

type ErrorCode_Common

type ErrorCode_Common int32
const (
	ErrorCode_COMMON_UNSPECIFIED               ErrorCode_Common = 0
	ErrorCode_COMMON_UNKNOWN                   ErrorCode_Common = 1000
	ErrorCode_COMMON_INVALID_SESSION           ErrorCode_Common = 1001
	ErrorCode_COMMON_INVALID_USER_AVAILABILITY ErrorCode_Common = 1002
)

func (ErrorCode_Common) Descriptor

func (ErrorCode_Common) Enum

func (ErrorCode_Common) EnumDescriptor deprecated

func (ErrorCode_Common) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorCode_Common.Descriptor instead.

func (ErrorCode_Common) Number

func (ErrorCode_Common) String

func (x ErrorCode_Common) String() string

func (ErrorCode_Common) Type

type ErrorCode_Method

type ErrorCode_Method int32
const (
	ErrorCode_METHOD_UNSPECIFIED ErrorCode_Method = 0
	// 入力値のバリデーションエラー。
	// エラーを表示した後、アプリを終了させる。
	ErrorCode_METHOD_ILLEGAL_ARGUMENT ErrorCode_Method = 2000
	// 要求の操作を行うための前提条件を満たしていない。
	// 前提となる状態に遷移し、ユーザに再操作を促す必要がある。
	ErrorCode_METHOD_RESOURCE_NOT_FOUND ErrorCode_Method = 2001
	// 要求の操作を行うための前提条件を満たしていない。
	// 前提となる状態に遷移し、ユーザに再操作を促す必要がある。
	ErrorCode_METHOD_RESOURCE_CONFLICT ErrorCode_Method = 2002
	// 要求の操作を行うための前提条件を満たしていない。
	// 前提となる状態に遷移し、ユーザに再操作を促す必要がある。
	ErrorCode_METHOD_RESOURCE_INSUFFICIENT ErrorCode_Method = 2003
	// Session: 3000 ~ 3999
	ErrorCode_METHOD_ID_TOKEN_EXPIRED ErrorCode_Method = 3000
)

func (ErrorCode_Method) Descriptor

func (ErrorCode_Method) Enum

func (ErrorCode_Method) EnumDescriptor deprecated

func (ErrorCode_Method) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorCode_Method.Descriptor instead.

func (ErrorCode_Method) Number

func (ErrorCode_Method) String

func (x ErrorCode_Method) String() string

func (ErrorCode_Method) Type

type ErrorDetail

type ErrorDetail struct {
	ErrorCode         int64             `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	ErrorHandlingType ErrorHandlingType `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ErrorDetail) Descriptor deprecated

func (*ErrorDetail) Descriptor() ([]byte, []int)

Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.

func (*ErrorDetail) GetErrorCode

func (x *ErrorDetail) GetErrorCode() int64

func (*ErrorDetail) GetErrorHandlingType

func (x *ErrorDetail) GetErrorHandlingType() ErrorHandlingType

func (*ErrorDetail) ProtoMessage

func (*ErrorDetail) ProtoMessage()

func (*ErrorDetail) ProtoReflect

func (x *ErrorDetail) ProtoReflect() protoreflect.Message

func (*ErrorDetail) Reset

func (x *ErrorDetail) Reset()

func (*ErrorDetail) String

func (x *ErrorDetail) String() string

type ErrorHandlingType

type ErrorHandlingType int32
const (
	ErrorHandlingType_ERROR_HANDLING_TYPE_UNSPECIFIED ErrorHandlingType = 0
	// サバクラ間の前提条件が満たされていない場合に発生する致命的なエラー。
	// 緊急メンテナンスで修正しなければならない。
	ErrorHandlingType_ERROR_HANDLING_TYPE_FATAL ErrorHandlingType = 1
	// サーバ側の一時的な不具合により発生したエラー。
	// リトライすることにより解決する可能性がある。
	ErrorHandlingType_ERROR_HANDLING_TYPE_TEMPORARY ErrorHandlingType = 2
	// クライアント側の不具合により発生したエラー。
	// 1つ前の画面に遷移したりタイトルに戻して前提条件を変えることにより、解決する可能性がある。
	ErrorHandlingType_ERROR_HANDLING_TYPE_RECOVERABLE ErrorHandlingType = 3
)

func (ErrorHandlingType) Descriptor

func (ErrorHandlingType) Enum

func (ErrorHandlingType) EnumDescriptor deprecated

func (ErrorHandlingType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorHandlingType.Descriptor instead.

func (ErrorHandlingType) Number

func (ErrorHandlingType) String

func (x ErrorHandlingType) String() string

func (ErrorHandlingType) Type

type ErrorSeverity

type ErrorSeverity int32
const (
	ErrorSeverity_ERROR_SEVERITY_UNSPECIFIED ErrorSeverity = 0
	ErrorSeverity_ERROR_SEVERITY_DEBUG       ErrorSeverity = 1
	ErrorSeverity_ERROR_SEVERITY_INFO        ErrorSeverity = 2
	ErrorSeverity_ERROR_SEVERITY_NOTICE      ErrorSeverity = 3
	ErrorSeverity_ERROR_SEVERITY_WARNING     ErrorSeverity = 4
	ErrorSeverity_ERROR_SEVERITY_ERROR       ErrorSeverity = 5
	ErrorSeverity_ERROR_SEVERITY_CRITICAL    ErrorSeverity = 6
	ErrorSeverity_ERROR_SEVERITY_ALERT       ErrorSeverity = 7
	ErrorSeverity_ERROR_SEVERITY_EMERGENCY   ErrorSeverity = 8
)

func (ErrorSeverity) Descriptor

func (ErrorSeverity) Enum

func (x ErrorSeverity) Enum() *ErrorSeverity

func (ErrorSeverity) EnumDescriptor deprecated

func (ErrorSeverity) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorSeverity.Descriptor instead.

func (ErrorSeverity) Number

func (ErrorSeverity) String

func (x ErrorSeverity) String() string

func (ErrorSeverity) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL