Struct: request.ErrParamMaxLen

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

Overview

An ErrParamMaxLen represents a maximum length parameter error.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Constructor Functions collapse

Method Summary collapse

Function Details

func NewErrParamMaxLen(field string, max int, value string) *ErrParamMaxLen

NewErrParamMaxLen creates a new maximum length parameter error.



248
249
250
251
252
253
254
255
256
257
// File 'aws/request/validation.go', line 248

func NewErrParamMaxLen(field string, max int, value string) *ErrParamMaxLen { return &ErrParamMaxLen{ errInvalidParam: errInvalidParam{ code: ParamMaxLenErrCode, field: field, msg: fmt.Sprintf("maximum size of %v, %v", max, value), }, max: max, } }

Method Details

func (e *ErrParamMaxLen) MaxLen() int

MaxLen returns the field's required minimum length.



260
261
262
// File 'aws/request/validation.go', line 260

func (e *ErrParamMaxLen) MaxLen() int { return e.max }