Maybe(configurable configure props) match {
case Just(_) ⇒
instance
- case Failed(e, _) ⇒
+ case Failed(e) ⇒
throw new AquariumException("Could not configure instance of %s".format(className), e)
case NoVal ⇒
throw new AquariumException("Could not configure instance of %s".format(className))
case _ ⇒
instance
}
- case Failed(e, _) ⇒
+ case Failed(e) ⇒
throw new AquariumException("Could not instantiate %s".format(className), e)
case NoVal ⇒
throw new AquariumException("Could not instantiate %s".format(className))
masterConfResource
case NoVal ⇒
throw new AquariumException("Could not find master configuration file: %s".format(MasterConfName))
- case Failed(e, m) ⇒
- throw new AquariumException(m, e)
+ case Failed(e) ⇒
+ throw new AquariumException(e, "Could not find master configuration file: %s".format(MasterConfName))
}
}
props
case NoVal ⇒
throw new AquariumException("Could not load master configuration file: %s".format(MasterConfName))
- case Failed(e, m) ⇒
- throw new AquariumException(m, e)
+ case Failed(e) ⇒
+ throw new AquariumException(e, "Could not load master configuration file: %s".format(MasterConfName))
}
}
masterConf
case NoVal ⇒
throw new AquariumException("Could not initialize master configuration file: %s".format(MasterConfName))
- case Failed(e, m) ⇒
- throw new AquariumException(m, e)
+ case Failed(e) ⇒
+ throw new AquariumException(e, "Could not initialize master configuration file: %s".format(MasterConfName))
}
}