Struct: request.ErrParamMinLen

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

Overview

An ErrParamMinLen represents a minimum length parameter error.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Constructor Functions collapse

Method Summary collapse

Function Details

func NewErrParamMinLen(field string, min int) *ErrParamMinLen

NewErrParamMinLen creates a new minimum length parameter error.



225
226
227
228
229
230
231
232
233
234
// File 'aws/request/validation.go', line 225

func NewErrParamMinLen(field string, min int) *ErrParamMinLen { return &ErrParamMinLen{ errInvalidParam: errInvalidParam{ code: ParamMinLenErrCode, field: field, msg: fmt.Sprintf("minimum field size of %v", min), }, min: min, } }

Method Details

func (e *ErrParamMinLen) MinLen() int

MinLen returns the field's required minimum length.



237
238
239
// File 'aws/request/validation.go', line 237

func (e *ErrParamMinLen) MinLen() int { return e.min }