layerErrors property

Map<Layer, ArcGISException> get layerErrors

A dictionary of layers that could not be taken offline.

Iterate through the dictionary to examine the error strings to determine why the layers failed to be taken offline.