ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NotSupportedException.php
Go to the documentation of this file.
1<?php
2
3namespace League\Flysystem;
4
5use RuntimeException;
6use SplFileInfo;
7
8class NotSupportedException extends RuntimeException
9{
17 public static function forLink(SplFileInfo $file)
18 {
19 $message = 'Links are not supported, encountered link at ';
20
21 return new static($message . $file->getPathname());
22 }
23
31 public static function forFtpSystemType($systemType)
32 {
33 $message = "The FTP system type '$systemType' is currently not supported.";
34
35 return new static($message);
36 }
37}
An exception for terminatinating execution or to throw for unit testing.
static forFtpSystemType($systemType)
Create a new exception for a link.
static forLink(SplFileInfo $file)
Create a new exception for a link.
catch(Exception $e) $message