PageRenderTime 263ms CodeModel.GetById 100ms app.highlight 2ms RepoModel.GetById 159ms app.codeStats 0ms

/src/away3d/library/naming/ErrorConflictStrategy.as

http://github.com/away3d/away3d-core-fp11
ActionScript | 22 lines | 19 code | 3 blank | 0 comment | 1 complexity | 985b7e69dad899241719f829e4914a11 MD5 | raw file
 1package away3d.library.naming
 2{
 3	import away3d.library.assets.IAsset;
 4	
 5	public class ErrorConflictStrategy extends ConflictStrategyBase
 6	{
 7		public function ErrorConflictStrategy()
 8		{
 9			super();
10		}
11		
12		public override function resolveConflict(changedAsset:IAsset, oldAsset:IAsset, assetsDictionary:Object, precedence:String):void
13		{
14			throw new Error('Asset name collision while AssetLibrary.namingStrategy set to AssetLibrary.THROW_ERROR. Asset path: ' + changedAsset.assetFullPath);
15		}
16		
17		public override function create():ConflictStrategyBase
18		{
19			return new ErrorConflictStrategy();
20		}
21	}
22}