Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ResourceIsAFolderException (0.2 sec)

  1. platforms/software/resources/src/main/java/org/gradle/internal/resource/ResourceIsAFolderException.java

    import org.gradle.api.resources.ResourceException;
    
    import java.net.URI;
    
    /**
     * Exception thrown when one attempts to read a folder
     */
    public class ResourceIsAFolderException extends ResourceException {
        public ResourceIsAFolderException(URI location, String message) {
            super(location, message);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 973 bytes
    - Viewed (0)
  2. platforms/software/resources/src/main/java/org/gradle/internal/resource/ResourceExceptions.java

    import java.io.File;
    import java.io.FileNotFoundException;
    import java.net.URI;
    
    public class ResourceExceptions {
        public static ResourceIsAFolderException readFolder(File location) {
            return new ResourceIsAFolderException(location.toURI(), String.format("Cannot read '%s' because it is a folder.", location));
        }
    
        public static ResourceException readFailed(File location, Throwable failure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/UriTextResourceTest.groovy

            when:
            resource.text
    
            then:
            def e = thrown(ResourceIsAFolderException)
            e.message == "Could not read <display-name> '$dir' as it is a directory." as String
    
            when:
            resource.asReader
    
            then:
            e = thrown(ResourceIsAFolderException)
            e.message == "Could not read <display-name> '$dir' as it is a directory." as String
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top