All Downloads are FREE. Search and download functionalities are using the official Maven repository.

smithy4s.com.amazonaws.kinesis.InvalidArgumentException.scala Maven / Gradle / Ivy

The newest version!
package com.amazonaws.kinesis

import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.Smithy4sThrowable
import smithy4s.schema.Schema.struct

/** 

A specified parameter exceeds its restrictions, is not supported, or can't be used. * For more information, see the returned message.

* @param message *

A message that provides information about the error.

*/ final case class InvalidArgumentException(message: Option[ErrorMessage] = None) extends Smithy4sThrowable { override def getMessage(): String = message.map(_.value).orNull } object InvalidArgumentException extends ShapeTag.Companion[InvalidArgumentException] { val id: ShapeId = ShapeId("com.amazonaws.kinesis", "InvalidArgumentException") val hints: Hints = Hints( smithy.api.Error.CLIENT.widen, smithy.api.Documentation("

A specified parameter exceeds its restrictions, is not supported, or can\'t be used.\n For more information, see the returned message.

"), ).lazily // constructor using the original order from the spec private def make(message: Option[ErrorMessage]): InvalidArgumentException = InvalidArgumentException(message) implicit val schema: Schema[InvalidArgumentException] = struct( ErrorMessage.schema.optional[InvalidArgumentException]("message", _.message).addHints(smithy.api.Documentation("

A message that provides information about the error.

")), )(make).withId(id).addHints(hints) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy