Added appropriate exception for attachment capacity