利用者向け情報

開発者向け情報

[sandbox.akabana]/trunk/yui/yui-core/src/main/flex/org/seasar/akabana/yui/core/error/NotFoundError.as

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1504 - (show annotations)
Sat Feb 19 16:23:33 2011 JST (2 years, 3 months ago) by e1arkw
File size: 1453 byte(s)
Copyrightを変更
1 /*
2 * Copyright 2004-2011 the Seasar Foundation and the Others.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13 * either express or implied. See the License for the specific language
14 * governing permissions and limitations under the License.
15 */
16 package org.seasar.akabana.yui.core.error
17 {
18 import mx.resources.ResourceManager;
19
20 import org.seasar.akabana.yui.util.StringUtil;
21
22 [ResourceBundle("yui_core")]
23 public class NotFoundError extends Error
24 {
25 public function NotFoundError(owner:Object,target:String)
26 {
27 var ownerName:String;
28 if( owner is String ){
29 ownerName = owner as String;
30 } else {
31 ownerName = getCanonicalName(owner);
32 }
33 super(
34 StringUtil
35 .substitute(
36 ResourceManager.getInstance().getString("yui_core","NOT_FOUND_ERROR"),
37 ownerName,
38 target
39 )
40 );
41
42 }
43
44 }
45 }

Repository Top
ViewVC Help  
ViewVC logotype
Powered by ViewVC