errors

module
v0.0.0-...-f8808d1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT

README

errors proto

This is a proto file that defines errors with status code and message.

Example
syntax = "proto3";

package dash.v1;

import "sphere/errors/errors.proto";

enum AdminError {
  option (sphere.errors.default_status) = 500;
  ADMIN_ERROR_UNSPECIFIED = 0;
  ADMIN_ERROR_CANNOT_DELETE_SELF = 1001 [(sphere.errors.options) = {
    status: 400
    message: "不能删除当前登录的管理员账号"
  }];
}

Directories

Path Synopsis
sphere

Jump to

Keyboard shortcuts

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