Sha256: 20163445ea9aa5f64edf63ca1082326d4198f492f4526822c4765d75844b5482

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

package s3.website.model

import com.amazonaws.AmazonServiceException
import com.amazonaws.AmazonServiceException.ErrorType.Client
import s3.website.ErrorReport

object Error {
  def isClientError(error: Throwable) =
    error.isInstanceOf[AmazonServiceException] && error.asInstanceOf[AmazonServiceException].getErrorType == Client
}

case class UserError(reportMessage: String) extends ErrorReport

case class IOError(exception: Throwable) extends ErrorReport {
  def reportMessage = exception.getMessage
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
s3_website_monadic-0.0.9 src/main/scala/s3/website/model/errors.scala
s3_website_monadic-0.0.8 src/main/scala/s3/website/model/errors.scala
s3_website_monadic-0.0.7 src/main/scala/s3/website/model/errors.scala