Class CredentialsNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.parallels.jenkins.CredentialsNotFoundException
All Implemented Interfaces:
Serializable

public class CredentialsNotFoundException extends Exception
Thrown by CredentialsHelper when a credential ID cannot be resolved to an actual credential in the Jenkins Credentials store.

Using a typed exception instead of a generic NullPointerException makes the failure diagnostic — callers see exactly which ID was missing and can surface a meaningful error in the Jenkins UI or log.

See Also:
  • Constructor Details

    • CredentialsNotFoundException

      public CredentialsNotFoundException(String credentialsId)
  • Method Details

    • getCredentialsId

      public String getCredentialsId()
      The credential ID that could not be resolved.