cancel
Showing results for 
Search instead for 
Did you mean: 

exception error in while compiling java

Former Member
0 Kudos

Hi friends,

i am new to exceptions..

i am following the blog.

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

i used the same code..

but i am getting error while compling

ExceptionThrower.java:5: cannot find symbol

symbol : class CustomMappingException

location: class com.xxx.yyy.CustomMappingException.ExceptionThrower

public static void fire(String message) throws CustomMappingException {

^

ExceptionThrower.java:6: cannot find symbol

symbol : class CustomMappingException

location: class com.electolux.compass.CustomMappingException.ExceptionThrower

throw new CustomMappingException(message);

^

please guide me

regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ravi

thx for ur response

that issue solved..and i imported as archive..

and i activated it.

in udf i given in imports i given com.xxx.yyy.*;

i am getting the eror while activating MM..

D:/usr/sap/E40/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapfc128e1012e811dd997c00145ed7d900/source/com/sap/xi/tf/_MM_Advice_To_Order _.java:3: package com.xxx.yyy does not exist

import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import com.xxx.yyy.;

^

ravi_raman2
Active Contributor
0 Kudos

Munna,

Its pretty obvious what the issue is..you declared a custom exception..DID YOU CREATE A CUSTOM EXCEPTION CLASS AND is it in the same package..??

Let me know if u need the code..i can send it

Regards

Ravi Raman