The wild is the wild and an enclosure is that; a place that even if safer, they can't get out of . In an enclosure frogs have limited diets, possibly have their natural ranging movements constricted, can't get away from other inhabitants, and have to deal with humans . Unless your enclosure is huge; can't see how you maintain different air humidity levels required for tree frogs and toads.