Moved ImageResizeException to the core space so that the core space image resize code can use it
This commit is contained in:
		
							parent
							
								
									b31a916477
								
							
						
					
					
						commit
						f2fb040a5b
					
				@ -42,3 +42,15 @@ class InvalidInput extends SCoreException
 | 
				
			|||||||
class InsufficientMemoryException extends SCoreException
 | 
					class InsufficientMemoryException extends SCoreException
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * This is used by the image resizing code when there is an error while resizing
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					class ImageResizeException extends SCoreException
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public $error;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function __construct(string $error)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $this->error = $error;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -11,20 +11,6 @@
 | 
				
			|||||||
 * Documentation:
 | 
					 * Documentation:
 | 
				
			||||||
 *  This extension allows admins to resize images.
 | 
					 *  This extension allows admins to resize images.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * This class is just a wrapper around SCoreException.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
class ImageResizeException extends SCoreException
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    public $error;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    public function __construct(string $error)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        $this->error = $error;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *	This class handles image resize requests.
 | 
					 *	This class handles image resize requests.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user