Exponential rigidity spectrums for solar-flare cosmic rays