|
Play Framework/Scala example source code file (CompositeCertificateException.scala)
The CompositeCertificateException.scala Play Framework example source code/* * * * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> * */ package play.api.libs.ws.ssl import java.security.cert.CertificateException /** * A certificate exception that contains underlying exceptions. */ class CompositeCertificateException(msg: String, val throwables: Array[Throwable]) extends CertificateException(msg) { def getSourceExceptions: Array[Throwable] = throwables } object CompositeCertificateException { def unwrap(e: Throwable)(block: Throwable => Unit) = { var cause: Throwable = e while (cause != null) { cause match { case composite: CompositeCertificateException => composite.getSourceExceptions.foreach { sourceException => block(sourceException) } case other => block(other) } cause = cause.getCause } } } Other Play Framework source code examplesHere is a short list of links related to this Play Framework CompositeCertificateException.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.