...

Source file src/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/errors_not_enabled.go

Documentation: go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt

     1  // Copyright (C) MongoDB, Inc. 2017-present.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License"); you may
     4  // not use this file except in compliance with the License. You may obtain
     5  // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
     6  
     7  //go:build !cse
     8  // +build !cse
     9  
    10  package mongocrypt
    11  
    12  // Error represents an error from an operation on a MongoCrypt instance.
    13  type Error struct {
    14  	Code    int32
    15  	Message string
    16  }
    17  
    18  // Error implements the error interface
    19  func (Error) Error() string {
    20  	panic(cseNotSupportedMsg)
    21  }
    22  

View as plain text