- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 43 for ResourceException (0.21 sec)
-
platforms/software/resources/src/main/java/org/gradle/api/resources/ResourceException.java
*/ @Contextual public class ResourceException extends GradleException { private final URI location; public ResourceException() { location = null; } public ResourceException(String message) { super(message); location = null; } public ResourceException(String message, Throwable cause) { super(message, cause);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/ResourceExceptions.java
} /** * Wraps the given failure, unless it is a ResourceException with the specified location. */ public static ResourceException failure(URI location, String message, Throwable failure) { if (failure instanceof ResourceException) { ResourceException resourceException = (ResourceException) failure; if (location.equals(resourceException.getLocation())) { return resourceException;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/transfer/AccessorBackedExternalResource.java
} @Override public ExternalResourceReadResult<Void> writeTo(OutputStream destination) throws ResourceException { throw new UnsupportedOperationException(); } @Nullable @Override public <T> ExternalResourceReadResult<T> withContentIfPresent(ContentAction<? extends T> readAction) throws ResourceException { return accessor.withContent(name, revalidate, inputStream -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 6.9K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/transfer/ExternalResourceAccessor.java
* @throws ResourceException If the resource may exist, but not could be obtained for some reason. */ @Nullable <T> T withContent(ExternalResourceName location, boolean revalidate, ExternalResource.ContentAndMetadataAction<T> action) throws ResourceException; /** * Reads the resource at the given location. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 3.8K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/local/DefaultLocallyAvailableExternalResource.java
public List<String> list() throws ResourceException { throw new UnsupportedOperationException(); } @Override public ExternalResourceWriteResult put(ReadableContent source) throws ResourceException { throw new UnsupportedOperationException(); } @Override public ExternalResourceReadResult<Void> writeTo(File destination) throws ResourceException { return localFile.writeTo(destination);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 4.2K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/ExternalResource.java
* @throws ResourceException on failure to copy the content. */ @Nullable ExternalResourceReadResult<Void> writeToIfPresent(File destination) throws ResourceException; /** * Copies the binary contents of this resource to the given stream. Does not close the provided stream. * * @throws ResourceException on failure to copy the content.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 5.7K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/transfer/UrlExternalResource.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.resource.transfer; import org.gradle.api.resources.ResourceException; import org.gradle.internal.UncheckedException; import org.gradle.internal.resource.ExternalResource; import org.gradle.internal.resource.ExternalResourceName; import org.gradle.internal.resource.ReadableContent;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 4.2K bytes - Viewed (0) -
platforms/software/resources-gcs/src/main/java/org/gradle/internal/resource/transport/gcp/gcs/GcsResourceConnector.java
@Override public List<String> list(ExternalResourceName parent) throws ResourceException { LOGGER.debug("Listing parent resources: {}", parent); return gcsClient.list(parent.getUri()); } @Nullable @Override public ExternalResourceReadResponse openResource(ExternalResourceName location, boolean revalidate) throws ResourceException { LOGGER.debug("Attempting to get resource: {}", location);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/software/resources/src/main/java/org/gradle/internal/resource/transfer/AbstractExternalResourceAccessor.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.resource.transfer; import org.gradle.api.resources.ResourceException; import org.gradle.internal.resource.ExternalResource; import org.gradle.internal.resource.ExternalResourceName; import org.gradle.internal.resource.ResourceExceptions; import javax.annotation.Nullable;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/software/resources/src/test/groovy/org/gradle/internal/resource/ResourceExceptionsTest.groovy
import org.gradle.api.resources.ResourceException import spock.lang.Specification class ResourceExceptionsTest extends Specification { def "wraps failure"() { def location = URI.create("scheme:name") def failure = new RuntimeException() expect: def e = ResourceExceptions.failure(location, "broken", failure) e instanceof ResourceException e.location == location
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 1.8K bytes - Viewed (0)