Struct: request.ErrParamMinValue

import "../ibm-cos-sdk-go/aws/request"

Overview

An ErrParamMinValue represents a minimum value parameter error.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Constructor Functions collapse

Method Summary collapse

Function Details

func NewErrParamMinValue(field string, min float64) *ErrParamMinValue

NewErrParamMinValue creates a new minimum value parameter error.



200
201
202
203
204
205
206
207
208
209
// File 'aws/request/validation.go', line 200

func NewErrParamMinValue(field string, min float64) *ErrParamMinValue { return &ErrParamMinValue{ errInvalidParam: errInvalidParam{ code: ParamMinValueErrCode, field: field, msg: fmt.Sprintf("minimum field value of %v", min), }, min: min, } }

Method Details

func (e *ErrParamMinValue) MinValue() float64

MinValue returns the field's require minimum value.

float64 is returned for both int and float min values.



214
215
216
// File 'aws/request/validation.go', line 214

func (e *ErrParamMinValue) MinValue() float64 { return e.min }